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