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