Skip to main content
InterviewHubPRO
Section Overview
Q19

Question 19 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

38%
Web Accessibility & WCAG (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

How do you implement Accessible Tabs according to WAI-ARIA APG?

senior LevelSystem Design

In Simple Words: According to the WAI-ARIA Authoring Practices Guide (APG):

  1. Container: role="tablist" with aria-label.
  2. Tabs: role="tab", aria-selected="true|false", aria-controls="panel-id", tabindex="0" for selected tab, tabindex="-1" for unselected tabs.
  3. Panels: role="tabpanel", aria-labelledby="tab-id", tabindex="0".
  4. Keyboard Interaction: Left/Right Arrow keys shift focus between tabs, not Tab key!