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