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