MugUp logoMugUp
HomeBrowsePricingAboutBlogContact
LoginSign Up
© 2026 MugUp. All rights reserved.
HomeAboutDeck LibraryBlogChangelogContactFeature RequestsDeck Requests
Terms of ServicePrivacy PolicyCookie Policy
  1. Browse decks
  2. Frontend Engineering Fundamentals
  3. HTML Semantics and Accessibility
Public deck

Frontend Engineering Fundamentals

The frontend half of the engineering set: HTML semantics and accessibility, CSS layout and the cascade, JavaScript core semantics, the event loop, and React. Useful both for interviews and for day-to-day work.

Engineering
AShared by Alex Chen
1PlaySign in to clone

You’re reading a free preview. Sign up to see every topic and question — and to play this deck as games.

See the whole deck

HTML Semantics and Accessibility

Choosing elements for meaning rather than appearance, and the accessibility behaviour that comes free with native HTML.

Play topicBack to deck

Content

60 total questions

MCQ: 15
Fill-in: 11
Flashcards: 19
Pair match: 15
HTML Semantics and Accessibility – Flashcards
Flashcards

Card #1

What does it mean for an HTML element to be 'semantic'?

Card #2

When should you use <button> instead of a clickable <div>?

Card #3

What is the difference between <section> and <div>?

16 more questions in this game

Showing 3 of 19. Sign up free to see the rest.

Sign up freeLog in
HTML Semantics and Accessibility – MCQ
Multiple Choice Questions
  1. 1. Which element gives you keyboard activation on both Enter and Space with no extra code?

    • <button>
    • <div role="button">
    • <a href="#">
    • <span tabindex="0">
  2. 2. A purely decorative icon is rendered as an <img>. What is the correct alt value?

    • alt="" — empty but present
    • Leave the alt attribute off entirely
    • alt="icon"
    • alt="decorative image"
  3. 3. How many <main> elements should a page have?

    • Exactly one
    • One per <section>
    • At least two, for content and navigation
    • Any number
12 more questions in this game

Showing 3 of 15. Sign up free to see the rest.

Sign up freeLog in
HTML Semantics and Accessibility – Fill-in-the-blank
Fill in the Blank
  1. 1. A decorative image should carry an empty ___ attribute so screen readers skip it.

    Answer:alt

    Hint: Three letters, on <img>.

  2. 2. The ___ attribute on a <label> must match the id of the control it labels.

    Answer:for

    Hint: One short word.

  3. 3. A page should contain exactly one ___ element, marking its primary content.

    Answer:mainalso: <main>

    Hint: A landmark element.

8 more questions in this game

Showing 3 of 11. Sign up free to see the rest.

Sign up freeLog in
HTML Semantics and Accessibility – Pair match
Pair Match
<article>↔Self-contained content that would still make sense on its own
<nav>↔A block of major navigation links
<aside>↔Content tangentially related to what surrounds it
12 more questions in this game

Showing 3 of 15. Sign up free to see the rest.

Sign up freeLog in