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