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