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