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