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