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