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