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