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