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