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