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