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