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