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