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