Build Tabs
Write the code, see it run, pass the checks.
The problem
- easy
- Code
Three tabs, "Profile", "Settings" and "Billing", each show their own panel: "Your profile", "Your settings" and "Your billing". Only the chosen tab's panel shows, and Profile is chosen at first. Give the tabs role="tab", and mark the chosen one with aria-selected="true" (the others "false") so screen readers know which is open.
Your code must pass
- Profile is chosen at first
- Clicking a tab shows only its panel
- The chosen tab has aria-selected true