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