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