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.🔗 Where does this link open?
<a href="contact.html">Visit the site</a> (a) in a new tab (b) in the same tab -
2.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="200"> (a) map.png (b) Birthday cake (c) width (d) Map of India - 3.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
-
4.🔗 Which words do you click on?
<a href="about.html">Take the quiz</a> (a) Take the quiz (b) href (c) about.html (d) Play games - 5.🔠 How many heading levels does HTML have? (a) 3 (b) 6 (c) 10 (d) 4
-
6.🔗 Where does this link open?
<a href="maths.html" target="_blank">Visit the site</a> (a) in a new tab (b) in the same tab - 7.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
-
8.🔗 Which words do you click on?
<a href="art.html">Maths fun</a> (a) art.html (b) Maths fun (c) Art corner (d) href - 9.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <h1> (c) <table> (d) <img>
-
10.🔗 Where does this link open?
<a href="art.html" target="_blank">About us</a> (a) in the same tab (b) in a new tab -
11.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>My drawings</h1>
<p>I like to read.</p>
</body>
</html> (a) Class 7 Blog (b) My drawings (c) body (d) I like to read. - 12.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 13.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
- 14.True or false: in <img>, alt sets how tall it is. (a) True (b) False
-
15.📋 What number does the browser show next to “Guava”?
<ol>
<li>Orange</li>
<li>Banana</li>
<li>Guava</li>
<li>Mango</li>
<li>Papaya</li>
<li>Grapes</li>
</ol> -
16.🔗 Which words do you click on?
<a href="news.html">Art corner</a> (a) School news (b) news.html (c) href (d) Art corner - 17.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
- 18.📄 Can HTML on its own run a game loop? (a) Yes (b) No
- 19.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <h6> (d) <p>
-
20.🔗 Which words do you click on?
<a href="contact.html">Visit the site</a> (a) Visit the site (b) contact.html (c) href (d) Maths fun - 21.True or false: <p> goes in the head. (a) False (b) True
- 22.True or false: <meta charset="utf-8"> goes in the body. (a) True (b) False
- 23.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h3> or <h2>? (a) <h1> (b) <h3> (c) <h2> (d) <h6>
- 24.📝 Does <h1> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 25.True or false: <h1> goes in the head. (a) True (b) False
- 26.Which of these is true of a code editor? (a) answers page requests (b) turns HTML into a page (c) sends pages over the net (d) saves our .html files
- 27.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h2>? (a) <h5> (b) <h1> (c) <h6> (d) <h2>
-
28.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="350"> (a) width (b) bus.jpg (c) An old fort (d) Our school bus - 29.📄 Where does the text of <title> appear? (a) on the browser tab (b) nowhere (c) at the bottom (d) in a big heading
- 30.True or false: <ul> is an unordered list. (a) True (b) False
- 31.🌐 Which one saves our .html files? (a) a web browser (b) a web server (c) a code editor
- 32.💬 Does the browser show comments on the page? (a) No (b) Yes
- 33.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
34.🔗 Which address opens when you click this link?
<a href="quiz.html">Maths fun</a> (a) games.html (b) quiz.html (c) Maths fun (d) about.html - 35.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
- 36.📋 Which list tag is an unordered list? (a) <ul> (b) <li> (c) <ol>
- 37.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h4> or <h2>? (a) <h2> (b) <h4> (c) <h5> (d) <h1>
- 38.True or false: <a> goes in the head. (a) False (b) True
-
39.🔗 Where does this link open?
<a href="quiz.html" target="_blank">Visit the site</a> (a) in the same tab (b) in a new tab -
40.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Mango</li>
<li>Jamun</li>
</ul> (a) bullets (b) numbers
Answer key
- in the same tab
- Map of India
- Yes
- Take the quiz
- 6
- in a new tab
- in the body
- Maths fun
- <meta charset="utf-8">
- in a new tab
- My drawings
- an opening tag
- in the head
- False
- 3
- Art corner
- True
- No
- <h6>
- Visit the site
- False
- False
- <h6>
- has a closing tag
- False
- saves our .html files
- <h6>
- Our school bus
- on the browser tab
- True
- a code editor
- No
- a closing tag
- quiz.html
- <li>
- <ul>
- <h5>
- False
- in a new tab
- bullets
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids