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