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