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