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.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="dog.jpg" alt="A happy dog" width="200"> (a) width (b) dog.jpg (c) The full moon (d) A happy dog - 2.🌐 Which one turns HTML into a page? (a) a web server (b) a code editor (c) a web browser
-
3.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Litchi</li>
<li>Mango</li>
</ul> (a) numbers (b) bullets -
4.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="350"> (a) A red kite (b) map.png (c) cake.jpg (d) kite.png - 5.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h4> or <h5>? (a) <h3> (b) <h6> (c) <h4> (d) <h5>
- 6.📄 Can HTML on its own make tables? (a) Yes (b) No
-
7.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="100"> (a) width (b) moon.png (c) The full moon (d) Our school bus - 8.True or false: <ul> is an unordered list. (a) False (b) True
- 9.📋 Which list tag lists steps in order? (a) <ul> (b) <ol> (c) <li>
-
10.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>Fun facts</p>
<p>My pets</p>
<p>My best friend</p>
<p>I love mangoes.</p> - 11.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h4> or <h2>? (a) <h4> (b) <h2> (c) <h6> (d) <h1>
- 12.True or false: HTML on its own cannot make links to pages. (a) True (b) False
-
13.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="300"> - 14.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ul> (c) <ol>
- 15.🏷️ Which is the closing tag for <i>? (a) </i> (b) <\i> (c) <i> (d) <i/>
-
16.📋 Does this list show bullets or numbers?
<ul>
<li>Banana</li>
<li>Litchi</li>
</ul> (a) bullets (b) numbers -
17.📋 Does this list show bullets or numbers?
<ol>
<li>Guava</li>
<li>Grapes</li>
</ol> (a) numbers (b) bullets -
18.🔗 Which address opens when you click this link?
<a href="maths.html">School news</a> (a) maths.html (b) news.html (c) art.html (d) School news - 19.🔍 Which is the odd one out? (a) shows line numbers (b) colours code to help us (c) hosts websites online (d) saves our .html files
- 20.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
-
21.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<!-- <p>The red kite</p> -->
<p>My best friend</p>
<!-- <p>I love mangoes.</p> -->
<p>Fun facts</p> - 22.🏷️ Every HTML tag starts with which sign? (a) [ (b) { (c) < (d) (
- 23.True or false: <table> goes in the head. (a) True (b) False
- 24.💬 Does the browser show comments on the page? (a) No (b) Yes
-
25.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<p>Rain today</p>
<p>Cricket is fun.</p>
<p>The red kite</p>
<!-- <p>Fun facts</p> --> -
26.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<p>The red kite</p>
<!-- <p>Cricket is fun.</p> -->
<p>Fun facts</p> (a) Fun facts (b) The red kite (c) Good morning! (d) Cricket is fun. -
27.🔗 Which words do you click on?
<a href="quiz.html">Contact us</a> (a) href (b) Contact us (c) Visit the site (d) quiz.html -
28.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<p>My pets</p>
<!-- <p>The red kite</p> --> (a) Our school trip (b) My pets (c) The red kite - 29.💬 How does an HTML comment start? (a) # (b) // (c) <!-- (d) /*
- 30.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 31.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 32.🔍 Which is the odd one out? (a) stores a website’s files (b) sends pages over the net (c) turns HTML into a page (d) answers page requests
-
33.🔗 Which words do you click on?
<a href="about.html">Take the quiz</a> (a) href (b) Take the quiz (c) Play games (d) about.html - 34.🔤 In “HTML”, what does the L stand for? (a) Language (b) Line (c) Laptop (d) Link
- 35.📄 Which part holds everything you see on the page? (a) the body (b) the head (c) the doctype (d) the title
- 36.True or false: a code editor sends pages over the net. (a) True (b) False
- 37.True or false: <ul> goes inside ul or ol. (a) False (b) True
- 38.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) editor (c) element (d) attribute
- 39.📝 Does <meta> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 40.🔗 What does target="_blank" do to a link? (a) makes it bold (b) makes it blank (c) opens it in a new tab (d) hides the link
Answer key
- A happy dog
- a web browser
- bullets
- kite.png
- <h6>
- Yes
- The full moon
- True
- <ol>
- 1
- <h1>
- False
- 300
- <ol>
- </i>
- bullets
- numbers
- maths.html
- hosts websites online
- in the head
- 2
- <
- False
- No
- 4
- Cricket is fun.
- Contact us
- The red kite
- <!--
- No
- Yes
- turns HTML into a page
- Take the quiz
- Language
- the body
- False
- False
- element
- an empty tag
- opens it in a new tab
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids