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