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