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