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