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