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