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