Tutorials › HTML Tutorial › HTML Quiz

HTML Quiz

10 min read · Lesson 22 of 22

Test what you have learned in this tutorial. There are 15 questions covering every module, from page structure to accessibility. Choose one answer for each question.

If you get a question wrong, go back to the matching lesson and try its examples again. Good luck!

Quiz 15 questions
1. What does HTML stand for?
2. Which line must come first in every HTML5 document?
3. Where does the content that visitors see on the page go?
4. Which of these is a void (empty) element with no closing tag?
5. Which heading element should normally be used once, for the main topic of the page?
6. Which element gives text strong importance, such as a warning?
7. Which attribute holds the destination of a link?
8. What is the main purpose of the alt attribute on an image?
9. Which list element produces automatically numbered items?
10. In a table, which element creates a header cell?
11. What is the difference between a class and an id?
12. Which input type shows a number keypad on phones and is meant for phone numbers?
13. Which form attribute stops the form from being submitted if the field is empty?
14. Which semantic element should wrap the main navigation links of a site?
15. How do you correctly show the text "<p>" on a web page?

What next?

Well done for finishing the HTML Tutorial. To keep improving:

  • Rebuild a page you visit often, such as a school, church or business site, using only what you have learned.
  • Run your pages through the W3C validator and fix every error it reports.
  • Move on to CSS to control colours, fonts and layout, then JavaScript to add interaction.

Keep the HTML tag reference handy as you build.

Sign in or create a free account to track progress, earn XP, badges and a certificate.