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