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