Senior FE WCAG Flashcards
(174 cards)
What does WCAG stand for?
Web Content Accessibility Guidelines – a technical standard by W3C outlining how to make digital content accessible. Most organizations aim to meet WCAG 2.1 Level AA.
What does WCAG cover?
Guidelines for accessibility like text alternatives, keyboard navigation, color contrast, focus management, and screen reader support.
What are the four principles of WCAG?
POUR
1. Perceivable,
2. Operable,
3. Understandable,
4. Robust
What does “WCAG 2.1 Level AA” refer to?
A set of accessibility guidelines that include required criteria for mid-level compliance, ensuring broad accessibility without being overly strict.
What types of disabilities does WCAG 2.1 address?
Visual, auditory, physical, speech, cognitive, language, learning, and neurological disabilities.
What are ARIA roles?
Attributes used to define accessible web content and applications for users with assistive technologies.
When should ARIA roles be used?
When native HTML elements don’t provide the needed accessibility functionality.
What is the difference between ARIA roles and semantic HTML?
Semantic HTML is preferred because it has built-in accessibility;
ARIA should be used as a supplement, not a replacement.
What is the purpose of ARIA attributes like aria-label
, aria-hidden
, or aria-live
?
To improve screen reader interaction by describing elements, hiding content, or notifying updates dynamically.
What does “accessible design” mean?
Designing digital experiences that can be used by as many people as possible, regardless of disability or impairment.
What is Section 508?
Section 508 is a U.S. federal law that requires all electronic and information technology developed, procured, maintained, or used by federal agencies to be accessible to people with disabilities.
What is ADA compliance?
Adherence to the Americans with Disabilities Act, ensuring equal access to digital content for individuals with disabilities.
What is accessibility remediation?
It’s the process of identifying and fixing existing accessibility issues in a product to ensure compliance with WCAG and legal standards like ADA or Section 508.
What does “compliance” mean in the context of accessibility?
Meeting the legal and technical standards defined by WCAG, ADA, Section 508, etc.
What is the difference between aria-label
and aria-labelledby
?
aria-label
provides an explicit text label directly on the element;
aria-labelledby
references the ID of another element to derive the label.
How does aria-hidden="true"
affect screen readers?
It hides the element and all of its children from screen readers, even though they remain visible visually.
What is the effect of setting tabindex="-1"
on an element?
It removes the element from the tab order but allows it to receive focus programmatically.
When would you use role="button"
in combination with JavaScript?
When using a non-semantic element (like <div>
or <span>
) as a button, you must also manage keyboard interactions (Enter
/Space
) and focus styles manually.
How does a screen reader interpret <button aria-pressed="true">
?
It reads the button as a toggle and announces it as “pressed” to the user, helping convey state.
What HTML element should be used for dynamic content that needs to alert screen reader users?
Use a container with aria-live="polite"
or aria-live="assertive"
to announce content changes.
What’s the difference between aria-live="polite"
and aria-live="assertive"
?
polite
waits until the user is idle to announce changes; assertive
interrupts the screen reader immediately.
Why is semantic HTML preferred over ARIA roles?
Semantic elements (like <button>
, <nav>
, <main>
) have built-in accessibility support and behaviors, reducing the need for custom scripting or attributes.
What are some common ARIA roles used in UI components?
role="dialog"
, role="alert"
, role="button"
, role="tablist"
, role="tabpanel"
, role="checkbox"
, etc.
What is “focus trapping” and when should it be used?
Focus trapping keeps keyboard navigation within a container (e.g., modal) until it’s closed, ensuring users don’t tab out of context.
Delete Item
Are you sure you want to delete this item? This action cannot be undone.
Main Title
Subsection
``` What’s the accessibility issue here?- Item 1
- `. Only `
- ` elements are valid. This breaks semantics and could confuse assistive tech.
Content block

Click here to download the file.
``` Why is this not WCAG 2.1 Level AA compliant?Settings
Change your preferences here.
` or ``) and call `.focus()` in a `useEffect()` that runs when the route changes.
Welcome
``` Use a `useEffect` to set focus on a heading or main content area when the route changes. Ensure the target is focusable (e.g., `tabIndex="-1"`).{statusMessage}
}Subscribe
Get updates in your inbox.
-
Fruits
- Apple
- Banana
-
{options.map((opt) => (
- {opt.label} ))}
Loaded Content
```-
{options.map(opt => (
- {opt} ))}
-
{options.map(opt => (
- {opt} ))}
Settings
Adjust your preferences
Settings
Adjust your preferences
- Tab 1
- Tab 2