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