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