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