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