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 does an HTML comment start? (a) # (b) /* (c) // (d) <!--
-
2.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>All about me</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) body (c) All about me (d) Cricket Club - 3.🖼️ Does <img> need a closing tag? (a) Yes (b) No
-
4.🔗 Which words do you click on?
<a href="games.html">About us</a> (a) Contact us (b) About us (c) href (d) games.html - 5.🌐 Which one opens web pages for us? (a) a code editor (b) a web server (c) a web browser
-
6.🔗 Which words do you click on?
<a href="about.html">Contact us</a> (a) Contact us (b) Visit the site (c) about.html (d) href -
7.📋 What number does the browser show next to “Grapes”?
<ol start="7">
<li>Papaya</li>
<li>Grapes</li>
<li>Banana</li>
<li>Orange</li>
<li>Litchi</li>
<li>Mango</li>
</ol> - 8.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) Home Text (c) High Tech (d) HyperText
- 9.🏷️ Every HTML tag starts with which sign? (a) ( (b) { (c) < (d) [
- 10.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h4> or <h1>? (a) <h5> (b) <h3> (c) <h4> (d) <h1>
-
11.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>My pets</p>
<p>Hello, world!</p> - 12.True or false: <img> goes in the head. (a) True (b) False
- 13.🔠 Are headings shown in bold by default? (a) Yes (b) No
-
14.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Match report</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Class 7 Blog (b) Thanks for visiting. (c) Match report (d) index.html - 15.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h5> or <h3>? (a) <h2> (b) <h3> (c) <h6> (d) <h5>
- 16.🌐 Which one sends pages over the net? (a) a web browser (b) a web server (c) a code editor
- 17.🏷️ Which is the closing tag for <b>? (a) <b> (b) </b> (c) <\b> (d) <b/>
- 18.📄 Can HTML on its own make tables? (a) No (b) Yes
- 19.True or false: HTML on its own can make headings. (a) False (b) True
-
20.🔗 Where does this link open?
<a href="about.html">Contact us</a> (a) in a new tab (b) in the same tab -
21.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<h4>The red kite</h4>
<h2>Cricket is fun.</h2>
<h2>Our school trip</h2>
<p>Good morning!</p> - 22.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h1> or <h6>? (a) <h5> (b) <h6> (c) <h4> (d) <h1>
- 23.💬 Why do coders write comments? (a) to leave notes (b) to add colour (c) to make links (d) to show pictures
- 24.💬 How does an HTML comment end? (a) */ (b) --> (c) // (d) >>
-
25.🔗 Which words do you click on?
<a href="games.html">Contact us</a> (a) Contact us (b) href (c) Visit the site (d) games.html - 26.Which of these is an opening tag? (a) </p> (b) </b> (c) <p> (d) </title>
-
27.🔗 Which words do you click on?
<a href="art.html">Take the quiz</a> (a) art.html (b) Play games (c) href (d) Take the quiz - 28.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h1> or <h3>? (a) <h3> (b) <h2> (c) <h4> (d) <h1>
-
29.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>My pets</p>
<p>My pets</p>
<h2>Rain today</h2>
<p>Fun facts</p> - 30.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows pages from the web (c) answers page requests (d) opens web pages for us
- 31.🔗 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
-
32.🔗 Which words do you click on?
<a href="https://example.com">Maths fun</a> (a) href (b) Art corner (c) Maths fun (d) https://example.com - 33.Which of these is an empty tag? (a) <li> (b) <meta> (c) <h1> (d) <title>
- 34.🔠 Which heading shows the SMALLEST text: <h6>, <h3>, <h1> or <h4>? (a) <h1> (b) <h6> (c) <h3> (d) <h4>
- 35.Which of these has a closing tag? (a) <p> (b) <img> (c) <input> (d) <br>
- 36.True or false: <li> goes inside ul or ol. (a) False (b) True
- 37.📋 Which tag goes around each item of a list? (a) <p> (b) <li> (c) <ul> (d) <ol>
-
38.🔗 Which address opens when you click this link?
<a href="games.html">Contact us</a> (a) about.html (b) contact.html (c) games.html (d) Contact us - 39.📝 Does <input> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
40.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="250"> (a) bus.jpg (b) The full moon (c) fort.jpg (d) moon.png
Answer key
- <!--
- All about me
- No
- About us
- a web browser
- Contact us
- 8
- HyperText
- <
- <h5>
- 3
- False
- Yes
- Class 7 Blog
- <h2>
- a web server
- </b>
- Yes
- True
- in the same tab
- 4
- <h6>
- to leave notes
- -->
- Contact us
- <p>
- Take the quiz
- <h4>
- 2
- answers page requests
- opens it in a new tab
- Maths fun
- <meta>
- <h6>
- <p>
- True
- <li>
- games.html
- an empty tag
- moon.png
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids