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