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 address opens when you click this link?
<a href="https://example.com">Maths fun</a> (a) Maths fun (b) maths.html (c) https://example.com (d) art.html - 2.🌐 Which one stores a website’s files? (a) a web browser (b) a code editor (c) a web server
-
3.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="100"> (a) bus.jpg (b) The full moon (c) fort.jpg (d) moon.png - 4.💬 How does an HTML comment end? (a) >> (b) // (c) --> (d) */
-
5.🔗 Which address opens when you click this link?
<a href="quiz.html">Play games</a> (a) quiz.html (b) about.html (c) Play games (d) games.html -
6.🔍 One closing tag is missing. Which one?
<strong>I love mangoes.</strong>
<h1>My pets
<p>My best friend</p> (a) </strong> (b) </h1> (c) </p> (d) </u> -
7.🔗 Which words do you click on?
<a href="maths.html">Take the quiz</a> (a) Take the quiz (b) href (c) maths.html (d) Play games -
8.🔗 Which address opens when you click this link?
<a href="quiz.html">Contact us</a> (a) about.html (b) Contact us (c) quiz.html (d) games.html - 9.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <link about.html>
- 10.Which of these is true of a web browser? (a) turns HTML into a page (b) sends pages over the net (c) hosts websites online (d) saves our .html files
- 11.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h5> or <h6>? (a) <h5> (b) <h6> (c) <h2> (d) <h3>
- 12.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 13.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h6> or <h3>? (a) <h5> (b) <h2> (c) <h3> (d) <h6>
- 14.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h5>? (a) <h6> (b) <h4> (c) <h5> (d) <h2>
- 15.True or false: <li> goes inside ul or ol. (a) False (b) True
- 16.🔗 Which tag makes a clickable link? (a) <p> (b) <a> (c) <link> (d) <img>
- 17.📄 Where does the text of <title> appear? (a) on the browser tab (b) at the bottom (c) in a big heading (d) nowhere
-
18.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<!-- <p>I love mangoes.</p> -->
<p>Our school trip</p>
<p>Cricket is fun.</p>
<p>Rain today</p> - 19.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 20.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 21.True or false: <p> has a closing tag. (a) False (b) True
- 22.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h1> or <h4>? (a) <h4> (b) <h6> (c) <h2> (d) <h1>
- 23.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h5> or <h3>? (a) <h3> (b) <h5> (c) <h2> (d) <h4>
-
24.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>Cricket is fun.</p>
<p>Good morning!</p>
<h2>Good morning!</h2> -
25.📋 What number does the browser show next to “Mango”?
<ol start="9">
<li>Litchi</li>
<li>Grapes</li>
<li>Mango</li>
<li>Guava</li>
</ol> -
26.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> -->
<p>Our school trip</p>
<p>Cricket is fun.</p> (a) I love mangoes. (b) Cricket is fun. (c) Our school trip (d) Hello, world! - 27.True or false: a web browser saves our .html files. (a) True (b) False
- 28.🌐 Which one opens web pages for us? (a) a code editor (b) a web browser (c) a web server
- 29.True or false: a web server saves our .html files. (a) True (b) False
- 30.💬 Does the browser show comments on the page? (a) Yes (b) No
- 31.True or false: <meta charset="utf-8"> goes in the body. (a) False (b) True
- 32.True or false: <li> is an empty tag. (a) False (b) True
- 33.🏷️ HTML marks up text using ___. (a) wires (b) tags (c) pixels (d) keys
-
34.🔗 Which address opens when you click this link?
<a href="art.html">Visit the site</a> (a) Visit the site (b) quiz.html (c) art.html (d) news.html - 35.🖼️ Why do we add alt text to an image? (a) to describe the image (b) to load it faster (c) to make it bigger (d) to colour it
- 36.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 37.📄 Can HTML on its own keep a high score? (a) Yes (b) No
- 38.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dollar $ (d) a dot .
-
39.🔗 Which words do you click on?
<a href="quiz.html">Visit the site</a> (a) Maths fun (b) quiz.html (c) href (d) Visit the site - 40.True or false: HTML on its own can keep a high score. (a) False (b) True
Answer key
- https://example.com
- a web server
- moon.png
- -->
- quiz.html
- </h1>
- Take the quiz
- quiz.html
- <a href="about.html">
- turns HTML into a page
- <h2>
- No
- <h6>
- <h2>
- True
- <a>
- on the browser tab
- 4
- a closing tag
- a closing tag
- True
- <h1>
- <h2>
- 2
- 11
- Hello, world!
- False
- a web browser
- False
- No
- False
- False
- tags
- art.html
- to describe the image
- a closing tag
- No
- a slash /
- Visit the site
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids