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