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