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