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