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