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