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