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 heading shows the SMALLEST text: <h6>, <h2>, <h1> or <h3>? (a) <h1> (b) <h2> (c) <h3> (d) <h6>
- 2.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <li> (c) <ol>
- 3.📄 Can HTML on its own make bullet lists? (a) Yes (b) No
-
4.🔗 Which words do you click on?
<a href="about.html">Play games</a> (a) href (b) about.html (c) Play games (d) About us - 5.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <p> (c) <br> (d) <h1>
- 6.🔍 Which is the odd one out? (a) has an address bar (b) opens web pages for us (c) turns HTML into a page (d) colours code to help us
-
7.📝 How many paragraphs does this code make?
<p>My best friend</p>
<h2>Hello, world!</h2>
<p>Rain today</p> - 8.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dot . (d) a dollar $
- 9.True or false: a web server shows pages from the web. (a) False (b) True
-
10.📋 How many items does this list show?
<ol>
<li>Mango</li>
<li>Litchi</li>
</ol> - 11.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h1> or <h4>? (a) <h4> (b) <h6> (c) <h1> (d) <h5>
- 12.🖼️ Which attribute of <img> shows if the image fails? (a) alt (b) src (c) width (d) height
- 13.🖼️ Which attribute of <img> sets how wide it is? (a) width (b) alt (c) height (d) src
- 14.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
15.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="fort.jpg" alt="An old fort" width="50"> (a) A tiger asleep (b) fort.jpg (c) width (d) An old fort - 16.True or false: <h1> goes in the head. (a) False (b) True
-
17.🔗 Which words do you click on?
<a href="games.html">Take the quiz</a> (a) Take the quiz (b) href (c) games.html (d) Play games -
18.🖼️ How many pixels wide is the picture drawn?
<img src="kite.png" alt="A red kite" width="350"> -
19.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Jamun</li>
<li>Mango</li>
<li>Orange</li>
<li>Grapes</li>
</ol> - 20.True or false: <ul> shows 1, 2, 3 numbers. (a) True (b) False
- 21.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <html> (c) <body> (d) <head>
-
22.🔗 Which address opens when you click this link?
<a href="games.html">Play games</a> (a) about.html (b) games.html (c) Play games (d) contact.html - 23.💬 How does an HTML comment end? (a) --> (b) // (c) >> (d) */
- 24.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <br> (c) <hr> (d) <ol>
-
25.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>All about me</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) We won by 5 runs. (b) Space Facts (c) body (d) All about me - 26.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h1> or <h6>? (a) <h4> (b) <h6> (c) <h1> (d) <h5>
-
27.📋 Does this list show bullets or numbers?
<ol>
<li>Orange</li>
<li>Papaya</li>
<li>Grapes</li>
</ol> (a) bullets (b) numbers - 28.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h2> or <h1>? (a) <h2> (b) <h4> (c) <h6> (d) <h1>
- 29.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
- 30.🏷️ HTML marks up text using ___. (a) tags (b) wires (c) keys (d) pixels
-
31.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Sky is blue<br>Roses are red<br>Kites fly high</p> -
32.🔗 Which address opens when you click this link?
<a href="about.html">Visit the site</a> (a) about.html (b) https://example.com (c) contact.html (d) Visit the site - 33.🌐 Which one hosts websites online? (a) a web browser (b) a web server (c) a code editor
- 34.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h4> or <h1>? (a) <h3> (b) <h1> (c) <h4> (d) <h5>
- 35.🖼️ Why do we add alt text to an image? (a) to colour it (b) to load it faster (c) to make it bigger (d) to describe the image
- 36.🌐 Which one stores a website’s files? (a) a web server (b) a web browser (c) a code editor
- 37.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
-
38.🖼️ Which picture file does the browser load?
<img src="tiger.jpg" alt="A tiger asleep" width="400"> (a) A tiger asleep (b) kite.png (c) tiger.jpg (d) map.png - 39.True or false: <li> shows bullet points. (a) False (b) True
- 40.True or false: <link rel="stylesheet"> goes in the body. (a) True (b) False
Answer key
- <h6>
- <ol>
- Yes
- Play games
- <h1>
- colours code to help us
- 2
- a slash /
- False
- 2
- <h1>
- alt
- width
- a closing tag
- An old fort
- False
- Take the quiz
- 350
- 5
- False
- <!DOCTYPE html>
- games.html
- -->
- <ol>
- All about me
- <h1>
- numbers
- <h6>
- <ul>
- tags
- 4
- about.html
- a web server
- <h5>
- to describe the image
- a web server
- Yes
- tiger.jpg
- False
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids