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