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