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