HTML Semantic Tags and Accessibility Quiz
Quick drills on semantic HTML: why it matters, document outline with sectioning elements, figure/figcaption, and ARIA landmark roles for accessibility.
1,190 views
22
List the concrete benefits of using semantic HTML elements (like <header>, <nav>, <main>, <article>, <section>, <aside>, <footer>) instead of wrapping everything in <div>s. Name at least three.
Build an HTML document outline for a blog post page using sectioning elements (<header>, <main>, <article>, <section>, <footer>). Each level of the outline should have exactly one heading; do not skip heading levels.
<body>
<!-- build the outline here -->
</body>Use <figure> and <figcaption> to mark up a captioned image. The caption should describe the image content, and the markup should remain accessible if the image fails to load.
<!-- mark up the captioned image here -->Rewrite the div-heavy layout below so that each region is exposed as an ARIA landmark. Prefer the implicit role of semantic elements (<header>, <nav>, <main>, <aside>, <footer>) over explicit role attributes, and only add explicit roles where the semantic element cannot carry the right landmark.
<div class="top">
<div class="site-nav">Home About Contact</div>
</div>
<div class="content">
<div class="article">Article body...</div>
<div class="side">Related links</div>
</div>
<div class="bottom">Copyright 2026</div>