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