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