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