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