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