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