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