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