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