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