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