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