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