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