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