HTML Worksheet: Paragraphs and Line Breaks
Code tip (One p, one paragraph): Each <p> … </p> pair is one paragraph. Each <br> starts a new line: lines shown = number of <br> + 1. Empty tags (<br>, <img>, <hr>, <input>, <meta>) have no closing tag.
NameDateTime takenScore ___ / 40
- 1.📝 Does <li> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
2.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>My pets</p>
<p>Fun facts</p>
<p>Rain today</p> - 3.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as a new line (b) as a dot (c) as one space (d) as 5 spaces
- 4.True or false: <li> is an empty tag. (a) True (b) False
-
5.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Kites fly high<br>Roses are red<br>Birds sing</p> -
6.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Roses are red</p> -
7.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>Good morning!</p>
<p>Rain today</p>
<p>I love mangoes.</p>
<p>Fun facts</p>
<h2>Hello, world!</h2> - 8.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 9.📝 What does <br> do? (a) makes a list (b) adds a picture (c) starts a new line (d) makes text bold
- 10.Which of these has a closing tag? (a) <meta> (b) <hr> (c) <title> (d) <br>
- 11.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 12.True or false: <title> is an empty tag. (a) True (b) False
- 13.Which of these has a closing tag? (a) <input> (b) <br> (c) <img> (d) <p>
- 14.📝 What does <p> make? (a) a picture (b) a table (c) a link (d) a paragraph
-
15.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>Our school trip</p>
<h2>Our school trip</h2>
<p>Hello, world!</p>
<p>The red kite</p>
<p>I love mangoes.</p> - 16.True or false: <meta> is an empty tag. (a) False (b) True
-
17.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Roses are red<br>Birds sing<br>Sky is blue<br>Rivers flow</p> -
18.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Rivers flow</p> -
19.📝 How many paragraphs does this code make?
<p>My best friend</p>
<p>Rain today</p>
<p>Cricket is fun.</p>
<p>The red kite</p> -
20.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<h2>My best friend</h2>
<p>Hello, world!</p>
<p>Cricket is fun.</p> - 21.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
22.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Birds sing<br>Stars shine<br>Kites fly high<br>Rivers flow</p> -
23.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<h2>Our school trip</h2>
<h2>The red kite</h2> -
24.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<p>I love mangoes.</p>
<h2>Our school trip</h2>
<p>My best friend</p>
<p>Good morning!</p> - 25.Which of these has a closing tag? (a) <input> (b) <br> (c) <hr> (d) <h1>
- 26.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
27.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Sky is blue</p> -
28.📝 How many paragraphs does this code make?
<p>Rain today</p>
<h2>My best friend</h2>
<h2>Rain today</h2>
<h2>I love mangoes.</h2>
<p>Rain today</p> -
29.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Rivers flow<br>Kites fly high</p> -
30.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Roses are red<br>Kites fly high</p> - 31.📝 Does <meta> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
32.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>My best friend</p>
<h2>Fun facts</h2>
<h2>Hello, world!</h2>
<h2>My pets</h2>
<h2>Rain today</h2> -
33.📝 How many paragraphs does this code make?
<p>Rain today</p>
<p>Our school trip</p>
<h2>Our school trip</h2>
<h2>Hello, world!</h2>
<p>Cricket is fun.</p>
<h2>Hello, world!</h2> - 34.Which of these is an empty tag? (a) <title> (b) <li> (c) <img> (d) <p>
- 35.Which of these has a closing tag? (a) <meta> (b) <hr> (c) <br> (d) <ul>
-
36.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<h2>Cricket is fun.</h2>
<h2>Rain today</h2>
<p>Our school trip</p>
<p>My pets</p> - 37.Which of these is an empty tag? (a) <meta> (b) <title> (c) <h1> (d) <b>
- 38.Which of these is an empty tag? (a) <br> (b) <b> (c) <p> (d) <h1>
-
39.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Sky is blue<br>Stars shine<br>Kites fly high</p> - 40.📝 What does <hr> draw? (a) a picture (b) a table (c) a line across the page (d) a link
Answer key
- has a closing tag
- 4
- as one space
- False
- 4
- 2
- 5
- has a closing tag
- starts a new line
- <title>
- an empty tag
- False
- <p>
- a paragraph
- 5
- True
- 5
- 2
- 4
- 3
- an empty tag
- 5
- 1
- 4
- <h1>
- an empty tag
- 2
- 2
- 3
- 3
- an empty tag
- 2
- 3
- <img>
- <ul>
- 3
- <meta>
- <br>
- 4
- a line across the page
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids