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