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