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