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