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