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