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 heading shows the SMALLEST text: <h6>, <h5>, <h4> or <h2>? (a) <h4> (b) <h5> (c) <h6> (d) <h2>
- 2.📄 Can HTML on its own run a game loop? (a) Yes (b) No
- 3.🌐 Which one shows pages from the web? (a) a code editor (b) a web server (c) a web browser
- 4.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h4> or <h3>? (a) <h5> (b) <h2> (c) <h4> (d) <h3>
- 5.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <br> (c) <hr> (d) <ol>
- 6.True or false: <ol> lists things in any order. (a) False (b) True
-
7.🔠 How many headings are in this code?
<h1>My best friend</h1>
<p>Our school trip</p>
<p>Cricket is fun.</p>
<p>Our school trip</p>
<h2>Our school trip</h2> - 8.True or false: <ol> is an unordered list. (a) True (b) False
- 9.📄 Can HTML on its own count button clicks? (a) No (b) Yes
- 10.📋 Which list tag shows bullet points? (a) <ul> (b) <li> (c) <ol>
- 11.🔍 Which is the odd one out? (a) shows pages from the web (b) has an address bar (c) colours code to help us (d) turns HTML into a page
- 12.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
- 13.True or false: a code editor turns HTML into a page. (a) False (b) True
- 14.🔢 In a basic web page file, which comes LAST? (a) <html> (b) </html> (c) <body> (d) <head>
- 15.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 6 (c) 3 (d) 10
-
16.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Our school trip</p>
<p>Hello, world!</p> - 17.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 18.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h4> or <h2>? (a) <h4> (b) <h2> (c) <h6> (d) <h5>
-
19.🔍 Which line is missing its closing tag?
line 1: <u>I love mangoes.</u>
line 2: <strong>Hello, world!
line 3: <h1>The red kite</h1> (a) line 3 (b) line 1 (c) line 2 - 20.💬 Does the browser show comments on the page? (a) Yes (b) No
-
21.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<p>Our school trip</p>
<p>Fun facts</p>
<p>Fun facts</p>
<p>Hello, world!</p> - 22.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <link about.html> (c) <a alt="about.html"> (d) <a href="about.html">
-
23.🔗 Where does this link open?
<a href="maths.html">About us</a> (a) in a new tab (b) in the same tab -
24.🔗 Where does this link open?
<a href="about.html">Maths fun</a> (a) in the same tab (b) in a new tab -
25.🔍 One closing tag is missing. Which one?
<small>Hello, world!
<em>Rain today</em>
<h2>Cricket is fun.</h2> (a) </em> (b) </h2> (c) </strong> (d) </small> -
26.📋 How many items does this list show?
<ul>
<li>Guava</li>
<li>Jamun</li>
<li>Banana</li>
</ul> - 27.Which of these goes in the head? (a) <h1> (b) <table> (c) <link rel="stylesheet"> (d) <img>
- 28.🌐 Which one sends pages over the net? (a) a code editor (b) a web browser (c) a web server
-
29.🔠 How many headings are in this code?
<h1>My pets</h1>
<h2>Hello, world!</h2>
<h3>Rain today</h3>
<p>Hello, world!</p>
<h2>The red kite</h2> -
30.🖼️ How many pixels wide is the picture drawn?
<img src="map.png" alt="Map of India" width="150"> - 31.🔠 Which heading shows the BIGGEST text: <h4>, <h6>, <h1> or <h3>? (a) <h3> (b) <h6> (c) <h1> (d) <h4>
- 32.True or false: in <img>, width is read by screen readers. (a) False (b) True
-
33.📋 Does this list show bullets or numbers?
<ul>
<li>Jamun</li>
<li>Grapes</li>
<li>Papaya</li>
</ul> (a) bullets (b) numbers -
34.📋 What number does the browser show next to “Guava”?
<ol>
<li>Litchi</li>
<li>Guava</li>
<li>Papaya</li>
</ol> - 35.True or false: in <img>, src sets how tall it is. (a) False (b) True
-
36.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>My drawings</h1>
<p>Try this poha.</p>
</body>
</html> (a) Try this poha. (b) Cricket Club (c) body (d) My drawings - 37.🖼️ Which attribute of <img> names the picture file? (a) src (b) alt (c) height (d) width
- 38.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h3>? (a) <h5> (b) <h6> (c) <h1> (d) <h3>
- 39.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <h1> (c) <a> (d) <img>
- 40.Which of these is an opening tag? (a) </b> (b) <body> (c) </body> (d) </title>
Answer key
- <h6>
- No
- a web browser
- <h2>
- <ol>
- False
- 2
- False
- No
- <ul>
- colours code to help us
- in the body
- False
- </html>
- 1
- 3
- a closing tag
- <h2>
- line 2
- No
- 5
- <a href="about.html">
- in the same tab
- in the same tab
- </small>
- 3
- <link rel="stylesheet">
- a web server
- 4
- 150
- <h1>
- False
- bullets
- 2
- False
- My drawings
- src
- <h6>
- <meta charset="utf-8">
- <body>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids