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