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