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