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