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