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