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