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