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