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 target="_blank" do to a link? (a) opens it in a new tab (b) hides the link (c) makes it blank (d) makes it bold
- 2.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) Home Text (c) High Tech (d) HyperText
- 3.True or false: <ul> lists things in any order. (a) False (b) True
-
4.📋 How many items does this list show?
<ul>
<li>Orange</li>
<li>Jamun</li>
<li>Grapes</li>
<li>Papaya</li>
<li>Litchi</li>
<li>Mango</li>
</ul> - 5.🏷️ What does a closing tag have that an opening tag does not? (a) a hash # (b) a slash / (c) a dollar $ (d) a dot .
- 6.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <h1> (c) <p> (d) <img>
-
7.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>All about me</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) Riya’s Recipes (c) body (d) All about me - 8.💬 Does the browser show comments on the page? (a) Yes (b) No
- 9.🔍 Which is the odd one out? (a) is where we type code (b) shows line numbers (c) has an address bar (d) colours code to help us
- 10.🔠 Which tag is the least important heading? (a) <h1> (b) <p> (c) <h6> (d) <h3>
- 11.💬 Why do coders write comments? (a) to make links (b) to show pictures (c) to add colour (d) to leave notes
-
12.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>The red kite</p>
<h3>Hello, world!</h3>
<p>I love mangoes.</p> - 13.Which of these is a closing tag? (a) <b> (b) <h1> (c) </p> (d) <title>
- 14.📋 Which list suits a shopping list in any order? (a) <hr> (b) <br> (c) <ul> (d) <ol>
- 15.🔤 In “HTML”, what does the L stand for? (a) Language (b) Laptop (c) Link (d) Line
-
16.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<p>I love mangoes.</p>
<p>The red kite</p> -
17.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>Fun facts</p>
<p>My pets</p> -
18.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<!-- <p>My pets</p> -->
<p>My best friend</p>
<p>Our school trip</p> (a) My best friend (b) Our school trip (c) Hello, world! (d) My pets - 19.🏷️ Every HTML tag starts with which sign? (a) [ (b) < (c) ( (d) {
- 20.💬 How does an HTML comment end? (a) */ (b) >> (c) // (d) -->
- 21.Which of these is a closing tag? (a) <p> (b) <b> (c) </h1> (d) <li>
-
22.🔍 One closing tag is missing. Which one?
<h3>Cricket is fun.
<small>My pets</small>
<p>Fun facts</p> (a) </i> (b) </p> (c) </small> (d) </h3> - 23.True or false: in <img>, src tells which image to load. (a) False (b) True
- 24.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <b> (c) <\b> (d) </b>
- 25.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h6> or <h3>? (a) <h6> (b) <h5> (c) <h3> (d) <h1>
- 26.Which of these is true of a web browser? (a) sends pages over the net (b) hosts websites online (c) turns HTML into a page (d) answers page requests
-
27.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>I like to read.</p>
</body>
</html> (a) Easy snacks (b) I like to read. (c) index.html (d) Cricket Club -
28.🔗 Which address opens when you click this link?
<a href="art.html">Contact us</a> (a) news.html (b) quiz.html (c) art.html (d) Contact us -
29.📋 How many items does this list show?
<ul>
<li>Orange</li>
<li>Papaya</li>
<li>Mango</li>
<li>Guava</li>
</ul> -
30.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="100"> (a) Our school bus (b) bus.jpg (c) width (d) An old fort -
31.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<p>Rain today</p>
<p>My pets</p>
<!-- <p>I love mangoes.</p> --> (a) Rain today (b) Fun facts (c) My pets (d) I love mangoes. - 32.🏷️ Which is the closing tag for <strong>? (a) <strong> (b) </strong> (c) <\strong> (d) <strong/>
-
33.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<p>Fun facts</p>
<p>Good morning!</p> - 34.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
35.🔗 Where does this link open?
<a href="contact.html" target="_blank">Art corner</a> (a) in a new tab (b) in the same tab - 36.🔍 Which is the odd one out? (a) stores a website’s files (b) sends pages over the net (c) opens web pages for us (d) answers page requests
- 37.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <p> (d) <a>
- 38.🌐 Which one shows line numbers? (a) a code editor (b) a web server (c) a web browser
- 39.Which of these is a closing tag? (a) <h1> (b) <title> (c) </b> (d) <b>
- 40.Which of these has a closing tag? (a) <p> (b) <br> (c) <img> (d) <input>
Answer key
- opens it in a new tab
- HyperText
- True
- 6
- a slash /
- <meta charset="utf-8">
- All about me
- No
- has an address bar
- <h6>
- to leave notes
- 2
- </p>
- <ul>
- Language
- 2
- 2
- My pets
- <
- -->
- </h1>
- </h3>
- True
- </b>
- <h1>
- turns HTML into a page
- Cricket Club
- art.html
- 4
- Our school bus
- I love mangoes.
- </strong>
- 2
- a closing tag
- in a new tab
- opens web pages for us
- <a>
- a code editor
- </b>
- <p>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids