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