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