Not so short note on aria-label usage – Big Table Edition – HTML Accessibility
DRANK

An audience with Dr David Swallow wherein he outlines the existential threat to native labeling mechanisms posed by the use of aria-label.Updated: 22 May 2024aria-label is one of a number of secondary methods to label native HTML UI elements. It works particularly well on interactive elements, it also works well on most block level elements old skool term that have explicitly or implicitly defined structural roles. It works less well or not at all on text level semantics. It is prohibited as are any form of accessible name on a whole slew of roles.Implicit roles are those applied automatically by browsers to native HTML elements.Explicit roles are those applied by developers using the role attribute. When applied they override the implicit role of an element.(Somewhat out of place here) general rules  for labelingPrefer visible over hidden labelsPrefer text labels over iconsIf icons are used provide a supplementary text label ( may be displayed on focus/hover)Place visible labels as e…

html5accessibility.com
Related Topics:
1 comments