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