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