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