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