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