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