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