Skip to content

Tab Content #24

Closed Answered by pirateIV
pirateIV asked this question in Q&A
Discussion options

You must be logged in to vote
<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>

Replies: 1 comment

Comment options

pirateIV
Aug 19, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by pirateIV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant