HTML Tutorial menu

HTML Quiz

Test your HTML skills with this quiz. Each question covers a chapter of the tutorial.

How the Quiz Works

  • There are 10 questions.
  • Pick an answer to see if it is right and read the short explanation.
  • If you get one wrong, go back to that chapter and try the examples again.

Questions

Exercise

1. Which element holds all the visible content of a page?

Exercise

2. Which is the correct way to write an attribute?

Exercise

3. How many <h1> headings should a normal page have?

Exercise

4. Which tag makes text bold and marks it as important?

Exercise

5. Which code links to the section with id="fees" on the same page?

Exercise

6. What is the alt attribute of an image for?

Exercise

7. In a table, which tag creates a row?

Exercise

8. What is the difference between class and id?

Exercise

9. Which input type checks that the text contains an @ sign?

Exercise

10. Which element is meant for content that makes sense on its own, like a blog post?

What Next?

Well done on finishing the HTML tutorial! Your next step is CSS, to give your pages colours, fonts and layouts.

Learn faster with a teacher: the Workownix Web Development course covers HTML, CSS and JavaScript with real projects, online or at our institute in Orangi Town, Karachi.

Learn HTML with a teacher

Join the Web Development course at Workownix, online or in Orangi Town, Karachi, and get a certificate.

See the course Ask on WhatsApp