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