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