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