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