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