div&gt;
    &lt;/label&gt;

  ...

&lt;/div&gt;
</code></pre>
</div>

<p>If you don't want to use JavaScript, you can use the radiobox method (utilizing <code>:checked</code> state and CSS adjacent selectors) to make it work without JavaScript. Markup is similar but the tab div goes into a wrapping <code>&lt;label&gt;</code>. Just before the <code>&lt;label&gt;</code> you need to place the <code>&lt;input type="radio"&gt;</code>. Make sure you point the <code>&lt;label&gt;</code> to the correct correspondin