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