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