Creating tabs
To create a tab, use a menu
element with role="tablist"
.
Then for the tab titles, use a button
with role="tab"
, and set the aria-controls
attribute to
the corresponding id of the element with role="tabpanel"
.
Read more at MDN Web docs - ARIA: tab role