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