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