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