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