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