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