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