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