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