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