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