Tab Content
#24
Replies: 1 comment
-
<div role="tablist" aria-label="Programming Languages">
<button role="tab" aria-selected="true" id="js">
JavaScript
</button>
<button role="tab" aria-selected="false" id="ruby">
Ruby
</button>
<button role="tab" aria-selected="false" id="php">
PHP
</button>
</div>
<div role="tabpanel" aria-labelledby="js">
<p>JavaScript is great</p>
</div>
<div role="tabpanel" aria-labelledby="ruby" hidden>
<p>Ruby is great</p>
</div>
<div role="tabpanel" aria-labelledby="php" hidden>
<p>PHP is great!</p>
</div>
</div> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pirateIV
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions