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