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