HTML Worksheet: Practice Test
Code tip (Read the code like a browser): Find the topic of the question: tags, headings, lists, links, images, structure or comments. Read the code line by line, the way a browser would. Count carefully: tags opened and closed, items, lines, paragraphs.
NameDateTime takenScore ___ / 40
-
1.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<!-- <p>Rain today</p> -->
<p>The red kite</p> - 2.True or false: HTML on its own cannot make a form. (a) False (b) True
- 3.📋 Which tag goes around each item of a list? (a) <p> (b) <ol> (c) <ul> (d) <li>
- 4.🔢 In a basic web page file, which comes first: “</body>” or “<!DOCTYPE html>”? (a) <!DOCTYPE html> (b) </body>
-
5.🖼️ Which picture file does the browser load?
<img src="bus.jpg" alt="Our school bus" width="350"> (a) fort.jpg (b) Our school bus (c) bus.jpg (d) tiger.jpg -
6.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Litchi</li>
<li>Grapes</li>
</ul> (a) numbers (b) bullets - 7.Which of these is true of a web server? (a) stores a website’s files (b) colours code to help us (c) saves our .html files (d) is where we type code
-
8.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>Hello, world!</p>
<h2>I love mangoes.</h2>
<h2>Cricket is fun.</h2>
<p>Good morning!</p>
<p>My best friend</p> - 9.True or false: <ul> lists steps in order. (a) True (b) False
- 10.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
- 11.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h3> or <h5>? (a) <h1> (b) <h4> (c) <h5> (d) <h3>
- 12.True or false: <ul> has a closing tag. (a) False (b) True
-
13.💬 Which text will NOT show on the page?
<p>The red kite</p>
<!-- <p>My best friend</p> -->
<p>Fun facts</p> (a) The red kite (b) My best friend (c) Fun facts -
14.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>I love mangoes.</h2>
<h2>I love mangoes.</h2>
<h2>Good morning!</h2>
<h2>Fun facts</h2>
<p>Cricket is fun.</p> -
15.🔍 One closing tag is missing. Which one?
<h1>I love mangoes.</h1>
<i>Our school trip
<strong>My pets</strong> (a) </i> (b) </strong> (c) </h1> (d) </b> -
16.🔍 One closing tag is missing. Which one?
<i>My pets</i>
<h1>Hello, world!
<p>Rain today</p> (a) </p> (b) </b> (c) </h1> (d) </i> -
17.🔗 Where does this link open?
<a href="news.html">Maths fun</a> (a) in the same tab (b) in a new tab - 18.Which of these is true of a web server? (a) shows line numbers (b) sends pages over the net (c) opens web pages for us (d) colours code to help us
-
19.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>I like to read.</p>
</body>
</html> (a) Class 7 Blog (b) Easy snacks (c) index.html (d) I like to read. -
20.💬 How many paragraphs show on the page?
<p>My best friend</p>
<p>Rain today</p>
<!-- <p>Good morning!</p> -->
<!-- <p>I love mangoes.</p> -->
<!-- <p>Cricket is fun.</p> --> - 21.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <p> (c) <br> (d) <h1>
- 22.Which of these is true of a web browser? (a) saves our .html files (b) shows pages from the web (c) hosts websites online (d) sends pages over the net
- 23.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h3>? (a) <h6> (b) <h4> (c) <h2> (d) <h3>
- 24.💬 How does an HTML comment start? (a) <!-- (b) # (c) /* (d) //
-
25.🔗 Which words do you click on?
<a href="about.html">Visit the site</a> (a) Maths fun (b) about.html (c) Visit the site (d) href -
26.💬 Which text will NOT show on the page?
<p>My best friend</p>
<p>I love mangoes.</p>
<!-- <p>Good morning!</p> -->
<p>Cricket is fun.</p> (a) I love mangoes. (b) Good morning! (c) My best friend (d) Cricket is fun. - 27.📄 Where does the text of <title> appear? (a) nowhere (b) on the browser tab (c) in a big heading (d) at the bottom
-
28.📝 How many paragraphs does this code make?
<p>My pets</p>
<h2>Our school trip</h2>
<p>My best friend</p> - 29.True or false: <p> goes in the body. (a) False (b) True
-
30.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Our school trip</p>
<p>My pets</p> - 31.🏷️ Which is the closing tag for <p>? (a) <p> (b) </p> (c) <\p> (d) <p/>
- 32.🔠 Which tag is the least important heading? (a) <p> (b) <h6> (c) <h1> (d) <h3>
- 33.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
34.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Stars shine<br>Birds sing<br>Kites fly high</p> - 35.🔠 How many heading levels does HTML have? (a) 6 (b) 3 (c) 10 (d) 4
-
36.🔍 One closing tag is missing. Which one?
<h1>My best friend</h1>
<h2>My pets
<p>Rain today</p> (a) </h1> (b) </h2> (c) </h3> (d) </p> -
37.🔗 Which words do you click on?
<a href="quiz.html">Contact us</a> (a) Contact us (b) href (c) quiz.html (d) Visit the site - 38.📝 Does <hr> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
39.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>Rain today</p>
<!-- <p>Fun facts</p> -->
<!-- <p>Cricket is fun.</p> --> - 40.Which of these is an opening tag? (a) </body> (b) </b> (c) </p> (d) <title>
Answer key
- 1
- False
- <li>
- <!DOCTYPE html>
- bus.jpg
- bullets
- stores a website’s files
- 4
- False
- in the head
- <h5>
- True
- My best friend
- 2
- </i>
- </h1>
- in the same tab
- sends pages over the net
- Class 7 Blog
- 2
- <h1>
- shows pages from the web
- <h2>
- <!--
- Visit the site
- Good morning!
- on the browser tab
- 2
- True
- 4
- </p>
- <h6>
- an empty tag
- 4
- 6
- </h2>
- Contact us
- an empty tag
- 1
- <title>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids