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