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