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