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