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