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 BIGGEST text: <h5>, <h1>, <h2> or <h4>? (a) <h2> (b) <h4> (c) <h1> (d) <h5>
- 2.🔗 Which attribute holds the address of a link? (a) id (b) src (c) href (d) alt
- 3.True or false: HTML on its own can make bullet lists. (a) False (b) True
- 4.True or false: in <img>, alt shows if the image fails. (a) False (b) True
- 5.📄 Can HTML on its own make headings? (a) No (b) Yes
- 6.True or false: in <img>, width describes the picture. (a) True (b) False
-
7.📋 What number does the browser show next to “Banana”?
<ol>
<li>Grapes</li>
<li>Jamun</li>
<li>Banana</li>
</ol> - 8.Which of these has a closing tag? (a) <h1> (b) <hr> (c) <img> (d) <input>
- 9.🌐 Which one colours code to help us? (a) a web browser (b) a web server (c) a code editor
- 10.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 11.Which of these has a closing tag? (a) <meta> (b) <img> (c) <b> (d) <hr>
- 12.Which of these goes in the head? (a) <img> (b) <h1> (c) <link rel="stylesheet"> (d) <ul>
- 13.🔢 In a basic web page file, which comes FIRST? (a) <body> (b) <!DOCTYPE html> (c) </html> (d) <html>
-
14.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="100"> (a) Birthday cake (b) map.png (c) Map of India (d) width -
15.💬 Which text will NOT show on the page?
<p>The red kite</p>
<p>Rain today</p>
<!-- <p>I love mangoes.</p> --> (a) I love mangoes. (b) The red kite (c) Rain today - 16.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h5> or <h4>? (a) <h1> (b) <h5> (c) <h6> (d) <h4>
- 17.📋 Which list suits a shopping list in any order? (a) <hr> (b) <br> (c) <ul> (d) <ol>
- 18.Which of these is an opening tag? (a) </b> (b) </li> (c) <li> (d) </h1>
-
19.🔗 Which words do you click on?
<a href="quiz.html">Play games</a> (a) quiz.html (b) href (c) About us (d) Play games - 20.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h1> or <h3>? (a) <h1> (b) <h6> (c) <h5> (d) <h3>
- 21.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
- 22.True or false: <img> goes in the head. (a) True (b) False
- 23.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h2> or <h3>? (a) <h4> (b) <h2> (c) <h1> (d) <h3>
- 24.True or false: a code editor colours code to help us. (a) True (b) False
-
25.📋 What number does the browser show next to “Grapes”?
<ol start="9">
<li>Banana</li>
<li>Papaya</li>
<li>Orange</li>
<li>Grapes</li>
</ol> - 26.💬 Does the browser show comments on the page? (a) Yes (b) No
- 27.📄 Can HTML on its own make links to pages? (a) No (b) Yes
- 28.🔠 How many heading levels does HTML have? (a) 6 (b) 3 (c) 4 (d) 10
- 29.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an attribute (c) a comment (d) an element name
- 30.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h2> or <h1>? (a) <h3> (b) <h5> (c) <h1> (d) <h2>
- 31.True or false: <ul> shows bullet points. (a) False (b) True
-
32.🔗 Which address opens when you click this link?
<a href="news.html">Visit the site</a> (a) quiz.html (b) games.html (c) news.html (d) Visit the site - 33.True or false: <meta charset="utf-8"> goes in the body. (a) False (b) True
- 34.True or false: <ul> is one item of a list. (a) False (b) True
- 35.📄 Can HTML on its own make a form? (a) Yes (b) No
- 36.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “<head>”? (a) <!DOCTYPE html> (b) <head>
- 37.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
-
38.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Guava</li>
<li>Orange</li>
<li>Grapes</li>
</ul> - 39.🔤 In “HTML”, what does the L stand for? (a) Language (b) Laptop (c) Line (d) Link
- 40.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
Answer key
- <h1>
- href
- True
- True
- Yes
- False
- 3
- <h1>
- a code editor
- a closing tag
- <b>
- <link rel="stylesheet">
- <!DOCTYPE html>
- Map of India
- I love mangoes.
- <h1>
- <ul>
- <li>
- Play games
- <h6>
- Yes
- False
- <h4>
- True
- 12
- No
- Yes
- 6
- an attribute
- <h1>
- True
- news.html
- False
- False
- Yes
- <!DOCTYPE html>
- True
- 4
- Language
- has a closing tag
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids