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