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