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