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 text will NOT show on the page?
<p>My pets</p>
<p>Good morning!</p>
<!-- <p>I love mangoes.</p> --> (a) My pets (b) Good morning! (c) I love mangoes. -
2.🔗 Which address opens when you click this link?
<a href="art.html">Art corner</a> (a) Art corner (b) news.html (c) art.html (d) quiz.html - 3.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <ul> (d) <br>
- 4.True or false: <style> goes in the body. (a) True (b) False
- 5.📝 What does <br> do? (a) makes text bold (b) adds a picture (c) makes a list (d) starts a new line
- 6.Which of these is an opening tag? (a) </body> (b) <title> (c) </title> (d) </b>
-
7.💬 Which text will NOT show on the page?
<p>The red kite</p>
<p>Hello, world!</p>
<!-- <p>My pets</p> -->
<p>Good morning!</p> (a) Good morning! (b) Hello, world! (c) The red kite (d) My pets - 8.🏷️ Which is the closing tag for <b>? (a) <b> (b) <\b> (c) </b> (d) <b/>
- 9.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 1 (c) 6 (d) 10
- 10.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) attribute (c) editor (d) element
-
11.🔗 Where does this link open?
<a href="maths.html" target="_blank">Visit the site</a> (a) in the same tab (b) in a new tab -
12.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Mango</li>
<li>Jamun</li>
<li>Litchi</li>
<li>Orange</li>
<li>Guava</li>
<li>Banana</li>
</ol> - 13.📋 Which list tag goes inside ul or ol? (a) <ul> (b) <li> (c) <ol>
- 14.🔍 Which is the odd one out? (a) answers page requests (b) shows pages from the web (c) stores a website’s files (d) hosts websites online
-
15.💬 Which text will NOT show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Hello, world!</p>
<p>Rain today</p> (a) I love mangoes. (b) Rain today (c) Hello, world! -
16.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="400"> (a) A red kite (b) Map of India (c) kite.png (d) width - 17.🏷️ Every HTML tag starts with which sign? (a) < (b) ( (c) { (d) [
-
18.🔠 How many headings are in this code?
<h1>My pets</h1>
<h3>My pets</h3>
<p>My pets</p>
<p>Good morning!</p> -
19.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="350"> (a) Birthday cake (b) cake.jpg (c) width (d) A happy dog - 20.Which of these is an opening tag? (a) </body> (b) <h1> (c) </h1> (d) </b>
- 21.🔠 Which heading shows the SMALLEST text: <h3>, <h2>, <h1> or <h4>? (a) <h3> (b) <h4> (c) <h1> (d) <h2>
-
22.🔗 Where does this link open?
<a href="news.html">Contact us</a> (a) in a new tab (b) in the same tab - 23.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 24.Which of these is true of a web server? (a) colours code to help us (b) is where we type code (c) answers page requests (d) shows line numbers
-
25.🔗 Which words do you click on?
<a href="quiz.html">School news</a> (a) School news (b) quiz.html (c) Take the quiz (d) href -
26.💬 Which text will NOT show on the page?
<!-- <p>My best friend</p> -->
<p>Cricket is fun.</p>
<p>The red kite</p> (a) Cricket is fun. (b) The red kite (c) My best friend -
27.🔗 Which words do you click on?
<a href="news.html">Contact us</a> (a) Contact us (b) news.html (c) href (d) Visit the site - 28.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h1> or <h2>? (a) <h2> (b) <h5> (c) <h1> (d) <h6>
- 29.🔤 In “HTML”, what does the L stand for? (a) Line (b) Language (c) Link (d) Laptop
- 30.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Machine (c) Mouse (d) Markup
- 31.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h6> or <h5>? (a) <h2> (b) <h4> (c) <h6> (d) <h5>
-
32.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<p>The red kite</p>
<!-- <p>Cricket is fun.</p> -->
<!-- <p>My pets</p> --> - 33.🔗 Which code links to about.html? (a) <link about.html> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <a src="about.html">
- 34.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h1> or <h3>? (a) <h5> (b) <h1> (c) <h3> (d) <h6>
- 35.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
36.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Riya’s Recipes (b) Thanks for visiting. (c) body (d) Welcome! - 37.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h4>? (a) <h5> (b) <h1> (c) <h4> (d) <h6>
- 38.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h5> or <h1>? (a) <h4> (b) <h5> (c) <h2> (d) <h1>
- 39.Which of these is true of a web server? (a) sends pages over the net (b) has an address bar (c) is where we type code (d) colours code to help us
- 40.True or false: <meta> has a closing tag. (a) False (b) True
Answer key
- I love mangoes.
- art.html
- <ul>
- False
- starts a new line
- <title>
- My pets
- </b>
- 1
- element
- in a new tab
- 2
- <li>
- shows pages from the web
- I love mangoes.
- A red kite
- <
- 2
- Birthday cake
- <h1>
- <h4>
- in the same tab
- No
- answers page requests
- School news
- My best friend
- Contact us
- <h6>
- Language
- Markup
- <h6>
- 1
- <a href="about.html">
- <h6>
- has a closing tag
- Welcome!
- <h1>
- <h1>
- sends pages over the net
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids