
Tabs – 22 Free CSS Tab Templates (14 Without JavaScript)
Tabs is a pack of 22 tab components, each a single self-contained HTML file with the CSS inline — and 14 of the 22 need no JavaScript at all. Alongside the familiar shapes (sliding underline, pill segments, vertical, boxed) it covers scrollable bars, closable browser tabs, two-level navigation, deep-linkable panels, swipeable panels, a wizard, filter tabs and a pricing comparison.

At a glance
- 22 designs, one folder each, single
index.htmlper design - 14 of 22 are pure CSS — state held in radio inputs, the URL hash, or
:has() - Only one design needs JavaScript for a reason CSS cannot argue with: folding overflowing tabs into a More menu depends on measured widths
- JavaScript tab sets carry the full ARIA pattern; the CSS-only ones stay radio groups, because native radios already give arrow keys and correct announcement
- Three honest mobile strategies included: scroll, fold into a menu, or become an accordion
- Every design checked at 380px; motion respects
prefers-reduced-motion
How to use
Open the design you want and copy its markup with the rules from the <style> block. Each design is self-contained. For the radio-based ones the only thing to change is the shared name on the inputs, so two tab sets on one page do not fight over the same group.
FAQ
Are these tab templates free?
Yes — free for personal and commercial projects, including client work.
Can I really build tabs without JavaScript?
Yes. Fourteen of these do, including closable tabs and two-level navigation. The pack documents which techniques hold state and what each one costs.