HTML Semantics & Web Accessibility
HTML Semantics & Web Accessibility
Up to 20 questions, shuffled on every run
Welcome to the HTML Semantics & Accessibility Quiz! This quiz will test your knowledge of semantic HTML elements and web accessibility best practices. Each question has a hint to help you out, and you’ll get explanations for each answer to deepen your understanding. Good luck!
Answer key and explanations20 questions
The quiz above draws 20 questions at random from these 33, so a second attempt will not be the same run. Everything in the pool is listed here.
What does semantic HTML mean?
AnswerUsing elements that describe content meaning (e.g., <nav>, <article>)
What is the purpose of the <header> element?
AnswerDefines introductory content or a set of navigation links for a section
What is the purpose of the <nav> element?
AnswerIdentifies a section of a page that contains major navigation links
What is the <main> element used for?
AnswerIdentifies the dominant content unique to the document, excluding footers
What is the purpose of the <article> element?
AnswerRepresents self-contained content that is independently distributable
What is the <aside> element used for?
AnswerContains content tangentially related to the content around the element
What does "accessibility" (a11y) mean in web development?
AnswerDesigning websites so they are usable by people with various disabilities
What is WCAG (Web Content Accessibility Guidelines)?
AnswerThe international standard for making web content accessible to everyone
What is alt text, and why is it important?
AnswerA text description of an image for screen readers and broken links
What is ARIA (Accessible Rich Internet Applications)?
AnswerA set of attributes that add accessibility information to complex widgets
What does the role attribute in ARIA do?
AnswerExplicitly defines the purpose or type of an element for screen readers
What is keyboard navigation accessibility?
AnswerEnsuring that all website functionality is fully usable without a mouse
What is the tabindex attribute?
AnswerDetermines if an element is focusable and its position in the tab order
What is a screen reader?
AnswerAssistive software that converts digital text into synthesized speech
What is color contrast in accessibility?
AnswerThe ratio of luminance between the foreground text and the background
What is a label in accessible forms?
AnswerAn element semantically linked to a form field to provide a description
What is the focus visible state in accessibility?
AnswerA visual indicator showing which element currently has keyboard focus
What is the difference between <label> and aria-label?
Answer<label> is a visible element; aria-label provides an invisible description
What is aria-live, and when is it used?
AnswerNotifies screen readers about dynamic content updates without a refresh
What is the skip link pattern?
AnswerA hidden link that allows users to jump directly to the main content area
What accessibility issues occur with color-only information?
AnswerUsers who are colorblind may not perceive the meaning of the color change
What is the purpose of the <figure> and <figcaption> elements?
Answer<figure> groups content; <figcaption> provides a semantic caption for it
What testing tools help evaluate web accessibility?
AnswerAutomated scanners (aXe, Lighthouse) combined with manual testing
What is the <footer> element used for?
AnswerDefines a footer for its nearest sectioning content or the whole document
What is the <section> element used for?
AnswerRepresents a standalone section of a document with a specific theme
What is aria-expanded, and when should it be used?
AnswerIndicates whether a collapsible component is currently open or closed
What is aria-describedby?
AnswerLinks an element to another element that provides a detailed description
What accessibility considerations apply to icons?
AnswerIcon-only buttons must have an aria-label or hidden text description
What accessibility issues apply to modals and dialogs?
AnswerThey must trap keyboard focus and allow the user to exit using Escape
What makes a data table accessible?
AnswerUsing <th> elements with the scope attribute to link headers to cells
What is prefers-reduced-motion?
AnswerA media query that detects if the user wants to minimize animations
What is the difference between role and semantic HTML elements?
AnswerSemantic elements have built-in roles; use role only as a fallback
What are ARIA live regions?
AnswerDynamic areas that automatically announce updates to screen readers









