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