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