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.🔗 What does HyperText mean? (a) very big text (b) secret text (c) text in colour (d) text with links
-
2.🔍 One closing tag is missing. Which one?
<strong>My pets</strong>
<i>Cricket is fun.
<h2>My best friend</h2> (a) </h2> (b) </i> (c) </p> (d) </strong> -
3.🔗 Which address opens when you click this link?
<a href="art.html">Maths fun</a> (a) art.html (b) quiz.html (c) Maths fun (d) news.html -
4.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<!-- <p>My pets</p> -->
<p>Hello, world!</p> - 5.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h6> or <h2>? (a) <h5> (b) <h6> (c) <h2> (d) <h1>
-
6.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<p>I love mangoes.</p>
<h3>I love mangoes.</h3> - 7.📄 Can HTML on its own show paragraphs? (a) Yes (b) No
-
8.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Guava</li>
<li>Papaya</li>
</ol> (a) numbers (b) bullets - 9.📄 Can HTML on its own keep a high score? (a) No (b) Yes
- 10.🔗 Which attribute holds the address of a link? (a) alt (b) href (c) id (d) src
- 11.Which of these is an opening tag? (a) </h1> (b) </title> (c) </body> (d) <b>
- 12.Which of these is true of a web server? (a) stores a website’s files (b) shows pages from the web (c) saves our .html files (d) has an address bar
-
13.🔗 Which address opens when you click this link?
<a href="quiz.html">Maths fun</a> (a) games.html (b) quiz.html (c) about.html (d) Maths fun - 14.📝 What does <p> make? (a) a table (b) a link (c) a picture (d) a paragraph
- 15.True or false: a web browser is where we type code. (a) False (b) True
- 16.🔍 Which is the odd one out? (a) is where we type code (b) opens web pages for us (c) shows line numbers (d) colours code to help us
-
17.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Orange</li>
<li>Guava</li>
<li>Jamun</li>
<li>Banana</li>
</ol> - 18.💬 How does an HTML comment end? (a) */ (b) --> (c) // (d) >>
-
19.📋 Does this list show bullets or numbers?
<ol>
<li>Mango</li>
<li>Papaya</li>
<li>Grapes</li>
</ol> (a) numbers (b) bullets - 20.📛 In <a href="x.html">, what is href? (a) a closing tag (b) a comment (c) an attribute (d) an element name
-
21.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="50"> (a) A red kite (b) map.png (c) kite.png (d) cake.jpg -
22.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>I love mangoes.</p>
<p>Hello, world!</p>
<p>Fun facts</p>
<h2>My pets</h2>
<h2>Cricket is fun.</h2> - 23.Which of these goes in the head? (a) <a> (b) <img> (c) <meta charset="utf-8"> (d) <ul>
-
24.🖼️ How many pixels wide is the picture drawn?
<img src="kite.png" alt="A red kite" width="100"> - 25.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h6> or <h4>? (a) <h1> (b) <h4> (c) <h2> (d) <h6>
-
26.🔍 One closing tag is missing. Which one?
<p>Fun facts
<i>Good morning!</i>
<strong>Hello, world!</strong> (a) </h2> (b) </strong> (c) </p> (d) </i> - 27.True or false: <title> goes in the head. (a) True (b) False
-
28.🔗 Which address opens when you click this link?
<a href="contact.html">About us</a> (a) https://example.com (b) contact.html (c) About us (d) maths.html - 29.True or false: <li> is an unordered list. (a) True (b) False
- 30.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
- 31.📋 Which list suits a shopping list in any order? (a) <br> (b) <ul> (c) <hr> (d) <ol>
- 32.True or false: <title> is an empty tag. (a) True (b) False
-
33.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="dog.jpg" alt="A happy dog" width="50"> (a) The full moon (b) A happy dog (c) width (d) dog.jpg - 34.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h5> or <h1>? (a) <h3> (b) <h6> (c) <h1> (d) <h5>
- 35.Which of these goes in the body? (a) <title> (b) <style> (c) <link rel="stylesheet"> (d) <ul>
- 36.🌐 Which one sends pages over the net? (a) a code editor (b) a web browser (c) a web server
-
37.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Welcome!</h1>
<p>I like to read.</p>
</body>
</html> (a) Welcome! (b) I like to read. (c) My Hobbies (d) index.html - 38.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dollar $ (d) a dot .
- 39.🖼️ Which attribute of <img> names the picture file? (a) height (b) src (c) alt (d) width
-
40.🔍 Which line is missing its closing tag?
line 1: <i>I love mangoes.
line 2: <small>Hello, world!</small>
line 3: <h1>Fun facts</h1> (a) line 1 (b) line 2 (c) line 3
Answer key
- text with links
- </i>
- art.html
- 1
- <h1>
- 2
- Yes
- numbers
- No
- href
- <b>
- stores a website’s files
- quiz.html
- a paragraph
- False
- opens web pages for us
- 3
- -->
- numbers
- an attribute
- kite.png
- 4
- <meta charset="utf-8">
- 100
- <h6>
- </p>
- True
- contact.html
- False
- <ul>
- <ul>
- False
- A happy dog
- <h1>
- <ul>
- a web server
- My Hobbies
- a slash /
- src
- line 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids