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