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