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