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