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