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 number does the browser show next to “Papaya”?
<ol>
<li>Banana</li>
<li>Mango</li>
<li>Papaya</li>
<li>Grapes</li>
</ol> - 2.True or false: HTML on its own can pick a random number. (a) True (b) False
- 3.📄 Where does the text of <title> appear? (a) nowhere (b) in a big heading (c) on the browser tab (d) at the bottom
- 4.🔠 How many heading levels does HTML have? (a) 4 (b) 3 (c) 10 (d) 6
- 5.True or false: <br> has a closing tag. (a) False (b) True
-
6.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>My best friend</p>
<!-- <p>I love mangoes.</p> -->
<p>Cricket is fun.</p> - 7.🔤 In “HTML”, what does the L stand for? (a) Line (b) Link (c) Language (d) Laptop
- 8.📋 Which list tag is an ordered list? (a) <ol> (b) <ul> (c) <li>
- 9.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h5> or <h4>? (a) <h5> (b) <h4> (c) <h6> (d) <h3>
-
10.🔍 One closing tag is missing. Which one?
<i>I love mangoes.</i>
<p>My pets
<b>My best friend</b> (a) </i> (b) </b> (c) </h3> (d) </p> - 11.🔍 Which is the odd one out? (a) answers page requests (b) sends pages over the net (c) shows pages from the web (d) hosts websites online
- 12.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h1> or <h4>? (a) <h2> (b) <h4> (c) <h1> (d) <h5>
- 13.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <link about.html> (c) <a src="about.html"> (d) <a href="about.html">
-
14.📋 How many items does this list show?
<ul>
<li>Litchi</li>
<li>Banana</li>
<li>Guava</li>
<li>Grapes</li>
<li>Jamun</li>
</ul> - 15.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h4> or <h3>? (a) <h3> (b) <h4> (c) <h2> (d) <h1>
-
16.🔍 One closing tag is missing. Which one?
<h3>Hello, world!</h3>
<em>My pets</em>
<h2>Good morning! (a) </i> (b) </h3> (c) </em> (d) </h2> -
17.🔠 How many headings are in this code?
<h1>My best friend</h1>
<h4>My pets</h4>
<h4>Hello, world!</h4>
<h3>My best friend</h3> - 18.🌐 Which one hosts websites online? (a) a web browser (b) a code editor (c) a web server
-
19.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>Rain today</p>
<h3>Hello, world!</h3>
<p>Hello, world!</p> - 20.True or false: in <img>, width tells which image to load. (a) True (b) False
-
21.🔗 Where does this link open?
<a href="news.html" target="_blank">School news</a> (a) in the same tab (b) in a new tab -
22.🔠 How many headings are in this code?
<h1>My best friend</h1>
<h3>Cricket is fun.</h3>
<p>Hello, world!</p>
<h2>My best friend</h2>
<h2>Cricket is fun.</h2> -
23.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="50"> -
24.🔗 Which address opens when you click this link?
<a href="art.html">Art corner</a> (a) news.html (b) art.html (c) Art corner (d) quiz.html -
25.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<h3>My pets</h3>
<h2>Cricket is fun.</h2> - 26.True or false: HTML on its own cannot add up two numbers. (a) False (b) True
- 27.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h5> or <h6>? (a) <h5> (b) <h1> (c) <h6> (d) <h2>
- 28.True or false: <ul> lists steps in order. (a) True (b) False
-
29.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Grapes</li>
<li>Mango</li>
</ul> - 30.🖼️ Which attribute of <img> names the picture file? (a) width (b) alt (c) src (d) height
-
31.🔗 Which address opens when you click this link?
<a href="https://example.com">Art corner</a> (a) art.html (b) https://example.com (c) Art corner (d) maths.html -
32.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Litchi</li>
<li>Mango</li>
<li>Grapes</li>
<li>Jamun</li>
<li>Orange</li>
</ul> - 33.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) makes it bold (c) makes it blank (d) hides the link
-
34.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<h2>My best friend</h2>
<h3>The red kite</h3>
<h3>My best friend</h3> -
35.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="350"> -
36.🔍 One closing tag is missing. Which one?
<h3>Fun facts</h3>
<strong>My pets
<i>My best friend</i> (a) </i> (b) </small> (c) </strong> (d) </h3> - 37.🔢 In a basic web page file, which comes FIRST? (a) </body> (b) <head> (c) <!DOCTYPE html> (d) <html>
-
38.🔗 Which words do you click on?
<a href="art.html">Maths fun</a> (a) Art corner (b) art.html (c) href (d) Maths fun -
39.🔗 Which address opens when you click this link?
<a href="contact.html">About us</a> (a) contact.html (b) maths.html (c) About us (d) https://example.com - 40.Which of these is an opening tag? (a) </body> (b) </h1> (c) </p> (d) <body>
Answer key
- 3
- False
- on the browser tab
- 6
- False
- 2
- Language
- <ol>
- <h6>
- </p>
- shows pages from the web
- <h1>
- <a href="about.html">
- 5
- <h1>
- </h2>
- 4
- a web server
- 2
- False
- in a new tab
- 4
- 50
- art.html
- 3
- True
- <h1>
- False
- 3
- src
- https://example.com
- 6
- opens it in a new tab
- 4
- 350
- </strong>
- <!DOCTYPE html>
- Maths fun
- contact.html
- <body>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids