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