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