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