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