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