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