Intro

These are some awesome tabs!

Check out the !

Code

Kind of verbose, here is the Jade source. Most JS libraries still ask for similar markup that's hardly any better, though.

HTML (Jade) Code:

div.tv-tabs
  label.tv-tab(for='tv-tab-1') Tab Name!
  label.tv-tab(for='tv-tab-n') for attr equals the radio ids
 
input.tv-radio#tv-tab-1(name='any-group-name', type='radio', checked)
div.tv-content Content goes here!
 
input.tv-radio#tv-tab-n(name='any-group-name', type='radio')
div.tv-content More goes here!

Relevant CSS (Stylus) Code:

.tv-content
  display none
 
.tv-radio
  display none
 
  &:checked + .tv-content
    display block

The trick is in the details.

?

Hey there!

Later...