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