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