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