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