g <code>&lt;input&gt;</code> by matching the <code>id</code> and <code>for</code> attributes.</p>

<p>With this method, since tab refers to the radiobox's <code>checked</code> state for determining selected state, you don't need to manually add <code>.selected</code> class on tabs. Convenient!</p>

<p>If you want to disable one of the tabs, add a <code>disabled</code> attribute on corresponding <code>&lt;input&gt;</code> not tabs.</p>

<br>

<h4>Tabs with content (Radiobox Method)</h4>
<div class="demo-pane