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