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