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