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