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