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