API …
Web elements

Tabs & accordion

ARIA tabs with arrow-key navigation and an accordion where only one panel is open at a time.

Practice tasks

  • Click each tab and assert the active panel text.
  • Use ArrowRight/ArrowLeft on the focused tab.
  • Open accordion panel 2 and assert panel 1 collapses.
  • Assert aria-selected and aria-expanded values.

More Web elements practice