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 does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>I like to read.</p>
</body>
</html> (a) My Hobbies (b) index.html (c) I like to read. (d) Easy snacks - 2.🌐 Which one answers page requests? (a) a web server (b) a web browser (c) a code editor
- 3.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h1> or <h3>? (a) <h3> (b) <h4> (c) <h1> (d) <h2>
- 4.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h1>? (a) <h6> (b) <h1> (c) <h4> (d) <h2>
- 5.Which of these is an opening tag? (a) </li> (b) </h1> (c) <p> (d) </body>
- 6.Which of these goes in the head? (a) <p> (b) <a> (c) <title> (d) <table>
- 7.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h6>? (a) <h6> (b) <h2> (c) <h1> (d) <h3>
- 8.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h4> or <h5>? (a) <h1> (b) <h4> (c) <h3> (d) <h5>
-
9.🔗 Which address opens when you click this link?
<a href="news.html">Maths fun</a> (a) games.html (b) Maths fun (c) quiz.html (d) news.html -
10.🖼️ How many pixels wide is the picture drawn?
<img src="tiger.jpg" alt="A tiger asleep" width="100"> - 11.🏷️ Every HTML tag starts with which sign? (a) ( (b) < (c) { (d) [
-
12.📋 Does this list show bullets or numbers?
<ol>
<li>Guava</li>
<li>Mango</li>
<li>Jamun</li>
</ol> (a) bullets (b) numbers -
13.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<p>The red kite</p>
<p>The red kite</p> - 14.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h6> or <h5>? (a) <h4> (b) <h5> (c) <h6> (d) <h3>
- 15.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 1 (c) 3 (d) 6
-
16.🔍 One closing tag is missing. Which one?
<strong>Rain today</strong>
<p>Hello, world!</p>
<h1>My pets (a) </h1> (b) </p> (c) </strong> (d) </b> - 17.Which of these has a closing tag? (a) <li> (b) <input> (c) <br> (d) <hr>
- 18.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h2> or <h5>? (a) <h6> (b) <h2> (c) <h1> (d) <h5>
- 19.📝 What does <hr> draw? (a) a picture (b) a line across the page (c) a table (d) a link
- 20.🔢 In a basic web page file, which comes first: “<body>” or “</body>”? (a) </body> (b) <body>
-
21.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="250"> (a) width (b) Our school bus (c) bus.jpg (d) An old fort -
22.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="200"> (a) fort.jpg (b) kite.png (c) tiger.jpg (d) An old fort - 23.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 24.🏷️ HTML marks up text using ___. (a) wires (b) tags (c) pixels (d) keys
-
25.💬 Which text will NOT show on the page?
<p>Cricket is fun.</p>
<p>Good morning!</p>
<!-- <p>The red kite</p> --> (a) The red kite (b) Good morning! (c) Cricket is fun. -
26.🔍 Which line is missing its closing tag?
line 1: <i>My pets</i>
line 2: <h3>Our school trip</h3>
line 3: <u>Fun facts (a) line 3 (b) line 1 (c) line 2 - 27.Which of these is a closing tag? (a) <h1> (b) </p> (c) <body> (d) <p>
- 28.🔠 Which heading shows the BIGGEST text: <h4>, <h6>, <h2> or <h1>? (a) <h6> (b) <h4> (c) <h2> (d) <h1>
- 29.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
-
30.🔗 Which words do you click on?
<a href="contact.html">Visit the site</a> (a) Visit the site (b) href (c) contact.html (d) Maths fun - 31.Which of these is an empty tag? (a) <title> (b) <p> (c) <meta> (d) <b>
-
32.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>Hello, world!</p>
<h2>Fun facts</h2> - 33.Which of these is an empty tag? (a) <ul> (b) <input> (c) <p> (d) <title>
- 34.🔗 What does target="_blank" do to a link? (a) hides the link (b) opens it in a new tab (c) makes it blank (d) makes it bold
-
35.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="300"> - 36.Which of these goes in the head? (a) <h1> (b) <a> (c) <style> (d) <ul>
- 37.🔢 In a basic web page file, which comes FIRST? (a) </head> (b) <body> (c) </html> (d) <!DOCTYPE html>
- 38.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
39.📋 What number does the browser show next to “Guava”?
<ol start="3">
<li>Mango</li>
<li>Orange</li>
<li>Guava</li>
<li>Jamun</li>
</ol> -
40.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<p>Cricket is fun.</p>
<!-- <p>Fun facts</p> -->
Answer key
- My Hobbies
- a web server
- <h1>
- <h1>
- <p>
- <title>
- <h6>
- <h5>
- news.html
- 100
- <
- numbers
- 3
- <h3>
- 1
- </h1>
- <li>
- <h1>
- a line across the page
- <body>
- Our school bus
- fort.jpg
- No
- tags
- The red kite
- line 3
- </p>
- <h1>
- <ul>
- Visit the site
- <meta>
- 2
- <input>
- opens it in a new tab
- 300
- <style>
- <!DOCTYPE html>
- a closing tag
- 5
- 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids