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