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