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