Accessibility
- The element that serves as the container for the set of tabs has role
tablist. - Each element that serves as a tab has role
taband is contained within the element with roletablist. - Each element that contains the content panel for a
tabhas roletabpanel. - If the tab list has a visible label, the element with role
tablisthasaria-labelledbyset to a value that refers to the labelling element. Otherwise, thetablistelement has a label provided byaria-label. - Each element with role
tabhas the propertyaria-controlsreferring to its associatedtabpanelelement. - The active
tabelement has the statearia-selectedset totrueand all othertabelements have it set tofalse. - Each element with role
tabpanelhas the propertyaria-labelledbyreferring to its associatedtabelement. - If a
tabelement has a pop-up menu, it has the propertyaria-haspopupset to eithermenuortrue. - If the
tablistelement is vertically oriented, it has the propertyaria-orientationset tovertical. The default value ofaria-orientationfor a tablist element is horizontal. - When focus moves into the tab list, focus is placed on the active tab element. When the tab list contains the focus, focus moves to the next element in the page tab sequence outside the tablist, which is typically either the first focusable element inside the tab panel or the tab panel itself.