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