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 SMALLEST text: <h2>, <h6>, <h5> or <h4>? (a) <h5> (b) <h4> (c) <h2> (d) <h6>
- 2.True or false: <ul> is an unordered list. (a) True (b) False
-
3.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>Rain today</p> -->
<p>Our school trip</p>
<!-- <p>My pets</p> -->
<!-- <p>Cricket is fun.</p> --> - 4.🔤 In “HTML”, what does the M stand for? (a) Machine (b) Modern (c) Mouse (d) Markup
- 5.Which of these is true of a web browser? (a) is where we type code (b) stores a website’s files (c) shows line numbers (d) turns HTML into a page
- 6.🔗 What does HyperText mean? (a) text in colour (b) secret text (c) text with links (d) very big text
- 7.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
8.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>I love mangoes.</p>
<p>My pets</p> (a) My pets (b) I love mangoes. (c) Rain today - 9.True or false: <hr> is an empty tag. (a) True (b) False
-
10.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="100"> (a) A red kite (b) kite.png (c) cake.jpg (d) map.png -
11.🔗 Which address opens when you click this link?
<a href="maths.html">About us</a> (a) news.html (b) maths.html (c) art.html (d) About us - 12.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
-
13.🔗 Which words do you click on?
<a href="games.html">School news</a> (a) href (b) games.html (c) Take the quiz (d) School news - 14.📄 Can HTML on its own make a form? (a) No (b) Yes
-
15.🔗 Which words do you click on?
<a href="maths.html">Art corner</a> (a) School news (b) maths.html (c) Art corner (d) href - 16.Which of these is a closing tag? (a) <title> (b) <h1> (c) <p> (d) </b>
- 17.🖼️ Which attribute of <img> describes the picture? (a) src (b) alt (c) width (d) height
-
18.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="250"> (a) width (b) tiger.jpg (c) A tiger asleep (d) A red kite -
19.📋 What number does the browser show next to “Orange”?
<ol start="3">
<li>Mango</li>
<li>Orange</li>
<li>Grapes</li>
</ol> - 20.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the body (d) the head
- 21.Which of these goes in the head? (a) <img> (b) <style> (c) <table> (d) <p>
- 22.True or false: <img> goes in the head. (a) False (b) True
- 23.🧱 HTML gives a web page its ___. (a) colours (b) speed (c) sound (d) structure
-
24.🔗 Which address opens when you click this link?
<a href="news.html">School news</a> (a) quiz.html (b) news.html (c) games.html (d) School news - 25.Which of these goes in the body? (a) <style> (b) <h1> (c) <link rel="stylesheet"> (d) <meta charset="utf-8">
- 26.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
-
27.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<!-- <p>I love mangoes.</p> -->
<!-- <p>Good morning!</p> -->
<p>My pets</p> -
28.🔗 Which words do you click on?
<a href="games.html">Contact us</a> (a) games.html (b) Contact us (c) href (d) Visit the site - 29.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 30.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h5> or <h2>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
- 31.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 32.🔤 In “HTML”, what does the L stand for? (a) Link (b) Language (c) Line (d) Laptop
- 33.🏷️ Every HTML tag starts with which sign? (a) < (b) { (c) ( (d) [
-
34.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="300"> -
35.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Welcome!</h1>
<p>I like to read.</p>
</body>
</html> (a) Cricket Club (b) body (c) I like to read. (d) Welcome! -
36.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>Fun facts</p>
<h4>Hello, world!</h4>
<p>Our school trip</p> - 37.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h4> or <h3>? (a) <h6> (b) <h4> (c) <h2> (d) <h3>
- 38.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h6> (d) <h1>
- 39.🏷️ Which is the closing tag for <em>? (a) <em/> (b) <\em> (c) <em> (d) </em>
-
40.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<h2>My pets</h2>
<p>Cricket is fun.</p>
Answer key
- <h6>
- True
- 2
- Markup
- turns HTML into a page
- text with links
- a closing tag
- Rain today
- True
- kite.png
- maths.html
- <ul>
- School news
- Yes
- Art corner
- </b>
- alt
- A tiger asleep
- 4
- the body
- <style>
- False
- structure
- news.html
- <h1>
- in the body
- 1
- Contact us
- an opening tag
- <h1>
- has a closing tag
- Language
- <
- 300
- Welcome!
- 2
- <h6>
- <h1>
- </em>
- 2
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids