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