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