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