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