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