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