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