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