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