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