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