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