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