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