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