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