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