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