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