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