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 <h1> headings should a page usually have? (a) 6 (b) 10 (c) 1 (d) 3
- 2.📋 Which list tag is one item of a list? (a) <ol> (b) <ul> (c) <li>
- 3.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
4.🔗 Which address opens when you click this link?
<a href="games.html">Art corner</a> (a) games.html (b) Art corner (c) about.html (d) contact.html -
5.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Guava</li>
<li>Litchi</li>
<li>Papaya</li>
<li>Orange</li>
</ul> - 6.🔠 Which heading shows the SMALLEST text: <h5>, <h4>, <h6> or <h2>? (a) <h6> (b) <h5> (c) <h4> (d) <h2>
-
7.🔗 Where does this link open?
<a href="about.html">Art corner</a> (a) in the same tab (b) in a new tab - 8.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h1> or <h5>? (a) <h1> (b) <h4> (c) <h5> (d) <h3>
- 9.🌐 Which one answers page requests? (a) a code editor (b) a web browser (c) a web server
- 10.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h5> or <h6>? (a) <h1> (b) <h5> (c) <h3> (d) <h6>
- 11.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Line (c) Link (d) Language
- 12.🌐 Which one colours code to help us? (a) a web browser (b) a code editor (c) a web server
- 13.📝 What does <hr> draw? (a) a table (b) a link (c) a line across the page (d) a picture
- 14.🌐 Which one shows line numbers? (a) a code editor (b) a web browser (c) a web server
-
15.💬 How many paragraphs show on the page?
<p>Good morning!</p>
<p>The red kite</p>
<!-- <p>Fun facts</p> --> - 16.🔍 Which is the odd one out? (a) has an address bar (b) shows line numbers (c) shows pages from the web (d) opens web pages for us
- 17.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <ul> (d) <br>
-
18.🔗 Which words do you click on?
<a href="https://example.com">Play games</a> (a) https://example.com (b) About us (c) Play games (d) href - 19.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 20.True or false: a web server turns HTML into a page. (a) False (b) True
- 21.💬 Does the browser show comments on the page? (a) Yes (b) No
- 22.💬 Why do coders write comments? (a) to show pictures (b) to add colour (c) to leave notes (d) to make links
-
23.🔗 Where does this link open?
<a href="about.html">About us</a> (a) in a new tab (b) in the same tab -
24.🔗 Which words do you click on?
<a href="contact.html">Take the quiz</a> (a) contact.html (b) Play games (c) Take the quiz (d) href -
25.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Kites fly high</p> - 26.Which of these is an empty tag? (a) <ul> (b) <title> (c) <img> (d) <p>
- 27.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
-
28.🔗 Which address opens when you click this link?
<a href="art.html">Contact us</a> (a) quiz.html (b) art.html (c) news.html (d) Contact us -
29.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<h2>Hello, world!</h2>
<p>My pets</p>
<h4>Hello, world!</h4> -
30.🖼️ Which picture file does the browser load?
<img src="map.png" alt="Map of India" width="250"> (a) dog.jpg (b) cake.jpg (c) Map of India (d) map.png -
31.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Match report</h1>
<p>Mars is red.</p>
</body>
</html> (a) Match report (b) Class 7 Blog (c) Mars is red. (d) body - 32.Which of these goes in the body? (a) <link rel="stylesheet"> (b) <h1> (c) <meta charset="utf-8"> (d) <title>
-
33.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>My best friend</p>
<p>Cricket is fun.</p>
<!-- <p>Our school trip</p> -->
<p>Hello, world!</p> - 34.📋 Which list tag lists things in any order? (a) <ol> (b) <li> (c) <ul>
-
35.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Sky is blue<br>Kites fly high</p> - 36.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <pic> (d) <img>
- 37.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 38.🔍 Which is the odd one out? (a) stores a website’s files (b) hosts websites online (c) sends pages over the net (d) shows pages from the web
-
39.🔍 Which line is missing its closing tag?
line 1: <u>Hello, world!</u>
line 2: <h2>The red kite
line 3: <h1>I love mangoes.</h1> (a) line 3 (b) line 2 (c) line 1 -
40.🔠 How many headings are in this code?
<h1>My best friend</h1>
<p>Rain today</p>
<p>Fun facts</p>
<p>I love mangoes.</p>
<p>My best friend</p>
Answer key
- 1
- <li>
- an opening tag
- games.html
- 5
- <h6>
- in the same tab
- <h1>
- a web server
- <h1>
- Language
- a code editor
- a line across the page
- a code editor
- 2
- shows line numbers
- <ol>
- Play games
- No
- False
- No
- to leave notes
- in the same tab
- Take the quiz
- 2
- <img>
- Yes
- art.html
- 3
- map.png
- Match report
- <h1>
- 3
- <ul>
- 3
- <img>
- has a closing tag
- shows pages from the web
- line 2
- 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids