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