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