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