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