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