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