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