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