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