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.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h6> or <h4>? (a) <h6> (b) <h4> (c) <h1> (d) <h5>
- 2.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ul> (c) <hr> (d) <ol>
-
3.🔗 Where does this link open?
<a href="quiz.html" target="_blank">School news</a> (a) in the same tab (b) in a new tab -
4.🔍 One closing tag is missing. Which one?
<em>Our school trip</em>
<u>Fun facts</u>
<strong>The red kite (a) </u> (b) </h3> (c) </em> (d) </strong> - 5.True or false: <ul> shows 1, 2, 3 numbers. (a) False (b) True
- 6.🌐 Which one answers page requests? (a) a code editor (b) a web server (c) a web browser
- 7.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h6> or <h4>? (a) <h2> (b) <h3> (c) <h4> (d) <h6>
- 8.🔗 What does HyperText mean? (a) very big text (b) text with links (c) text in colour (d) secret text
-
9.🔗 Where does this link open?
<a href="news.html" target="_blank">Maths fun</a> (a) in the same tab (b) in a new tab -
10.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<p>Hello, world!</p>
<!-- <p>Cricket is fun.</p> -->
<p>My best friend</p> -
11.🔗 Which words do you click on?
<a href="news.html">School news</a> (a) href (b) Take the quiz (c) news.html (d) School news - 12.🖼️ Why do we add alt text to an image? (a) to load it faster (b) to colour it (c) to describe the image (d) to make it bigger
-
13.🔗 Which words do you click on?
<a href="games.html">Visit the site</a> (a) games.html (b) href (c) Maths fun (d) Visit the site - 14.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Home Text (c) HyperText (d) Hot Tags
-
15.🔗 Which address opens when you click this link?
<a href="https://example.com">Art corner</a> (a) https://example.com (b) Art corner (c) art.html (d) maths.html - 16.🔠 Which tag is the least important heading? (a) <h3> (b) <h1> (c) <p> (d) <h6>
- 17.True or false: a web server shows pages from the web. (a) False (b) True
-
18.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Match report</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Here is my best one. (b) index.html (c) My Hobbies (d) Match report - 19.📋 Which list tag is one item of a list? (a) <li> (b) <ul> (c) <ol>
- 20.🔠 Which heading shows the SMALLEST text: <h5>, <h4>, <h6> or <h3>? (a) <h4> (b) <h5> (c) <h6> (d) <h3>
- 21.True or false: <ul> is an empty tag. (a) False (b) True
-
22.📋 Does this list show bullets or numbers?
<ol>
<li>Litchi</li>
<li>Orange</li>
<li>Grapes</li>
</ol> (a) numbers (b) bullets -
23.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="100"> (a) Map of India (b) map.png (c) width (d) Birthday cake - 24.🌐 Which one opens web pages for us? (a) a web server (b) a code editor (c) a web browser
- 25.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h3>? (a) <h6> (b) <h3> (c) <h5> (d) <h2>
-
26.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="150"> (a) A red kite (b) cake.jpg (c) kite.png (d) map.png - 27.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 28.True or false: a code editor is where we type code. (a) True (b) False
-
29.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Grapes</li>
<li>Mango</li>
<li>Litchi</li>
<li>Guava</li>
<li>Orange</li>
</ol> - 30.📄 Where does the text of <title> appear? (a) at the bottom (b) nowhere (c) in a big heading (d) on the browser tab
- 31.Which of these is a closing tag? (a) <body> (b) <p> (c) </h1> (d) <h1>
-
32.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>Good morning!</p>
<p>My best friend</p> (a) Our school trip (b) Good morning! (c) My best friend - 33.Which of these is true of a web browser? (a) hosts websites online (b) stores a website’s files (c) colours code to help us (d) turns HTML into a page
- 34.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h6> (d) <h1>
-
35.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Papaya</li>
<li>Grapes</li>
<li>Orange</li>
</ol> - 36.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 37.💾 A web page file usually ends with which extension? (a) .mp3 (b) .png (c) .txt (d) .html
- 38.🖼️ Does <img> need a closing tag? (a) No (b) Yes
-
39.🔗 Where does this link open?
<a href="art.html" target="_blank">Art corner</a> (a) in a new tab (b) in the same tab - 40.💬 Does the browser show comments on the page? (a) No (b) Yes
Answer key
- <h1>
- <ol>
- in a new tab
- </strong>
- False
- a web server
- <h2>
- text with links
- in a new tab
- 3
- School news
- to describe the image
- Visit the site
- HyperText
- https://example.com
- <h6>
- False
- My Hobbies
- <li>
- <h6>
- False
- numbers
- Map of India
- a web browser
- <h2>
- kite.png
- Yes
- True
- 6
- on the browser tab
- </h1>
- Our school trip
- turns HTML into a page
- <h1>
- 4
- an opening tag
- .html
- No
- in a new tab
- No
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids