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