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