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