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