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