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