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