You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A small demo that implements tabbed content using only HTML and CSS (radio inputs + labels).
5
+
This shows how to switch panels without JavaScript.
6
+
7
+
## Files
8
+
- `index.html` — demo HTML
9
+
- `style.css` — styles and layout
10
+
- `README.md` — this file
11
+
12
+
## How to use
13
+
1. Open `index.html` in your browser.
14
+
2. Click the tab labels to switch panels.
15
+
3. The demo uses `<input type="radio">` and `<label for="...">` to control which panel is displayed.
16
+
17
+
## Accessibility notes
18
+
- The pattern uses semantic roles: `role="tablist"`, `role="tab"` and `role="tabpanel"`.
19
+
- Keyboard navigation using Tab to focus labels works; however, arrow-key navigation between tabs and advanced focus management require JavaScript for full WAI-ARIA tab behavior. Document this limitation in the demo README so reviewers know it's intentional.
20
+
- Ensure focus-visible styles are present (they are in `style.css`).
21
+
22
+
## Contribution
23
+
- Add your name and GitHub handle to the "Contributed By" section if you submit this demo.
24
+
- Follow the repository CONTRIBUTING.md: fork → branch → add folder (`Tabs/Accessible-Tabs/`) → update top-level README index if needed → PR.
25
+
26
+
## Contributed by
27
+
- Your Name — https://github.com/itsmeananyasrivastava
<p>This demo shows how to implement tabbed content with only HTML and CSS using radio buttons and labels. Switching tabs uses :checked state; no JavaScript required.</p>
0 commit comments