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