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 words do you click on?
<a href="contact.html">Art corner</a> (a) School news (b) Art corner (c) contact.html (d) href - 2.True or false: <ul> is an ordered list. (a) False (b) True
-
3.🔗 Which words do you click on?
<a href="https://example.com">Contact us</a> (a) href (b) https://example.com (c) Contact us (d) Visit the site -
4.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Guava</li>
<li>Litchi</li>
<li>Jamun</li>
<li>Grapes</li>
</ol> - 5.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h4>? (a) <h5> (b) <h1> (c) <h4> (d) <h6>
-
6.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Match report</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) index.html (b) We won by 5 runs. (c) Match report (d) My Hobbies - 7.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h6> or <h1>? (a) <h2> (b) <h4> (c) <h1> (d) <h6>
- 8.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h6> or <h3>? (a) <h3> (b) <h6> (c) <h2> (d) <h5>
- 9.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <!DOCTYPE html> (c) </body> (d) <html>
- 10.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h4> or <h6>? (a) <h4> (b) <h3> (c) <h5> (d) <h6>
- 11.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
- 12.True or false: <b> is an empty tag. (a) True (b) False
- 13.Which of these has a closing tag? (a) <hr> (b) <img> (c) <meta> (d) <p>
- 14.🌐 Which one opens web pages for us? (a) a code editor (b) a web server (c) a web browser
- 15.💬 Does the browser show comments on the page? (a) Yes (b) No
- 16.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h1> or <h4>? (a) <h4> (b) <h1> (c) <h3> (d) <h5>
-
17.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="150"> (a) bus.jpg (b) moon.png (c) fort.jpg (d) The full moon -
18.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="300"> (a) map.png (b) kite.png (c) A red kite (d) cake.jpg -
19.🔗 Which words do you click on?
<a href="https://example.com">Take the quiz</a> (a) Take the quiz (b) Play games (c) href (d) https://example.com - 20.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 21.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
-
22.🔍 One closing tag is missing. Which one?
<h2>Good morning!</h2>
<b>Cricket is fun.
<h3>The red kite</h3> (a) </h2> (b) </h3> (c) </i> (d) </b> - 23.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 24.📛 In <a href="x.html">, what is href? (a) a comment (b) a closing tag (c) an attribute (d) an element name
-
25.🔗 Where does this link open?
<a href="contact.html">Take the quiz</a> (a) in a new tab (b) in the same tab -
26.🔗 Which address opens when you click this link?
<a href="games.html">Play games</a> (a) contact.html (b) games.html (c) about.html (d) Play games -
27.🔗 Which words do you click on?
<a href="news.html">Play games</a> (a) About us (b) href (c) news.html (d) Play games - 28.Which of these is a closing tag? (a) <h1> (b) </h1> (c) <body> (d) <title>
- 29.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it blank (c) makes it bold (d) opens it in a new tab
- 30.📝 What does <hr> draw? (a) a picture (b) a table (c) a link (d) a line across the page
-
31.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="100"> (a) fort.jpg (b) The full moon (c) bus.jpg (d) moon.png -
32.💬 Which text will NOT show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Our school trip</p>
<p>Fun facts</p> (a) I love mangoes. (b) Fun facts (c) Our school trip - 33.📄 What is the first line of an HTML5 page? (a) <head> (b) <body> (c) <html> (d) <!DOCTYPE html>
-
34.🔗 Which address opens when you click this link?
<a href="games.html">About us</a> (a) about.html (b) games.html (c) About us (d) contact.html -
35.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<!-- <p>I love mangoes.</p> -->
<p>The red kite</p> - 36.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h5> or <h2>? (a) <h5> (b) <h2> (c) <h3> (d) <h6>
- 37.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h6> or <h5>? (a) <h3> (b) <h6> (c) <h5> (d) <h2>
- 38.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h2> or <h3>? (a) <h6> (b) <h5> (c) <h2> (d) <h3>
- 39.True or false: HTML on its own cannot make tables. (a) False (b) True
- 40.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h4> or <h5>? (a) <h5> (b) <h4> (c) <h3> (d) <h6>
Answer key
- Art corner
- False
- Contact us
- 3
- <h1>
- My Hobbies
- <h6>
- <h2>
- </html>
- <h3>
- the body
- False
- <p>
- a web browser
- No
- <h1>
- moon.png
- kite.png
- Take the quiz
- an opening tag
- in the head
- </b>
- a closing tag
- an attribute
- in the same tab
- games.html
- Play games
- </h1>
- opens it in a new tab
- a line across the page
- moon.png
- I love mangoes.
- <!DOCTYPE html>
- games.html
- 1
- <h2>
- <h2>
- <h6>
- False
- <h3>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids