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