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