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