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