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