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