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