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