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