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