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