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