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