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