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