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