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.💬 How many paragraphs show on the page?
<p>Cricket is fun.</p>
<!-- <p>Fun facts</p> -->
<p>I love mangoes.</p> - 2.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
3.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Here is my best one. (b) body (c) Easy snacks (d) Space Facts - 4.Which of these is a closing tag? (a) <body> (b) <b> (c) <h1> (d) </body>
- 5.🔠 Which tag is the least important heading? (a) <h3> (b) <h1> (c) <p> (d) <h6>
- 6.💬 How does an HTML comment start? (a) # (b) // (c) /* (d) <!--
-
7.🔍 One closing tag is missing. Which one?
<h1>Cricket is fun.</h1>
<u>I love mangoes.
<i>My pets</i> (a) </p> (b) </i> (c) </u> (d) </h1> - 8.True or false: in <img>, width tells which image to load. (a) False (b) True
-
9.🔗 Which address opens when you click this link?
<a href="about.html">Contact us</a> (a) about.html (b) Contact us (c) contact.html (d) https://example.com - 10.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h6> or <h1>? (a) <h1> (b) <h3> (c) <h4> (d) <h6>
- 11.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ul> (c) <ol> (d) <hr>
-
12.📋 Does this list show bullets or numbers?
<ol>
<li>Orange</li>
<li>Jamun</li>
<li>Mango</li>
</ol> (a) numbers (b) bullets -
13.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="400"> - 14.🌐 Which one shows line numbers? (a) a web browser (b) a code editor (c) a web server
- 15.True or false: a web browser hosts websites online. (a) False (b) True
- 16.🏷️ Which is the closing tag for <i>? (a) </i> (b) <i/> (c) <i> (d) <\i>
- 17.🔠 Are headings shown in bold by default? (a) Yes (b) No
-
18.🔗 Where does this link open?
<a href="news.html">Visit the site</a> (a) in a new tab (b) in the same tab -
19.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="200"> (a) An old fort (b) Our school bus (c) width (d) bus.jpg - 20.🌐 Which one hosts websites online? (a) a web browser (b) a code editor (c) a web server
-
21.🖼️ Which picture file does the browser load?
<img src="tiger.jpg" alt="A tiger asleep" width="150"> (a) map.png (b) tiger.jpg (c) A tiger asleep (d) kite.png - 22.📄 Where does the text of <title> appear? (a) in a big heading (b) on the browser tab (c) nowhere (d) at the bottom
-
23.🖼️ 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) A happy dog (d) width - 24.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 25.📋 Which list tag is an ordered list? (a) <li> (b) <ol> (c) <ul>
- 26.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h6> or <h2>? (a) <h6> (b) <h1> (c) <h3> (d) <h2>
- 27.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 3 (d) 10
-
28.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Planets</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) Planets (c) body (d) Art Gallery -
29.🔍 One closing tag is missing. Which one?
<em>My pets</em>
<i>Rain today
<strong>Good morning!</strong> (a) </strong> (b) </p> (c) </em> (d) </i> - 30.📋 Which list tag lists steps in order? (a) <li> (b) <ul> (c) <ol>
- 31.True or false: HTML on its own cannot show paragraphs. (a) False (b) True
-
32.🔍 One closing tag is missing. Which one?
<i>Hello, world!
<em>Cricket is fun.</em>
<h2>My best friend</h2> (a) </em> (b) </h2> (c) </u> (d) </i> - 33.True or false: <li> is an unordered list. (a) True (b) False
-
34.🔗 Which words do you click on?
<a href="games.html">Maths fun</a> (a) Art corner (b) games.html (c) href (d) Maths fun - 35.Which of these is a closing tag? (a) <body> (b) </li> (c) <h1> (d) <li>
- 36.True or false: <ul> is one item of a list. (a) True (b) False
- 37.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
- 38.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h6> (c) <h1> (d) <p>
-
39.🔗 Where does this link open?
<a href="https://example.com" target="_blank">Play games</a> (a) in the same tab (b) in a new tab - 40.🏷️ Every HTML tag starts with which sign? (a) [ (b) { (c) ( (d) <
Answer key
- 2
- has a closing tag
- Easy snacks
- </body>
- <h6>
- <!--
- </u>
- False
- about.html
- <h1>
- <ol>
- numbers
- 400
- a code editor
- False
- </i>
- Yes
- in the same tab
- Our school bus
- a web server
- tiger.jpg
- on the browser tab
- Birthday cake
- a closing tag
- <ol>
- <h6>
- 1
- Planets
- </i>
- <ol>
- False
- </i>
- False
- Maths fun
- </li>
- False
- Yes
- <h1>
- in a new tab
- <
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids