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