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