Skip to content
Retr0 Academy
Advanced HTML

Advanced HTML · 8 questions

Advanced HTML quiz

Answer every question, then score the quiz. The result is saved in this browser.

1. Which element should wrap the single primary content area of a page?
2. An icon-only close button contains just an <svg>. How do you give it an accessible name?
3. What does input.setCustomValidity("Passwords do not match.") do?
4. Why style with :user-invalid instead of :invalid?
5. Which is true about content drawn on a <canvas>?
6. Why set width and height attributes on an <img>?
7. Social crawlers fetch your page to build a link card. Where must og: tags be?
8. What does <link rel="canonical"> tell search engines?