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