Page Title: Agen Judi Slot Bola Terbaik 2022
January 04, 2022 03:06

a[href] element role semantics. (Deprecated)

Actions

Severity Action
no actions

Details

Rule ID Role 12
Definition a[href] elements must only have role values of link (default), button, checkbox, menuitem, menuitemcheckbox, menuitemradio, tab, switch or treeitem. NOTE: Deprecated in favor of HTML 3 a more general rule on role restrictions based on ARIA in HTML specification.
Purpose
  • The a[href] has a default role of link and the browser natively supports the behavior of being part of the tab order of the page (e.g. tabindex=0) and will repsond to click events and the enter key.
  • When a[href] elements only need to use the role attribute when they are part of interactive widgets and are restricted to subset of widget roles: button, checkbox, menuitem, menuitemcheckbox, menuitemradio, tab, switch or treeitem.
WCAG Success Criteria

4.1.2 Name, Role, Value (Level A, Primary Success Criterion)

Rule Category Links
Scope Element
Target Resources a[href] elements
  • a
Techniques
  • The a[href] element's default role of link can only be overridden with following roles: button, checkbox, menuitem, menuitemcheckbox, menuitemradio, tab, switch or treeitem.
Informational Links

Element Results

Element Identifier Result Element Position Message

Column Definitions

Element Identifier
Information about the element associated with the result.
The information typically includes the tag name, accessible name or other information related to the rule requirements.
"Page" means that the result applied to the page. For example, the rule "One main landmark on the page" is a page level rule.
Element Position
The element position is based on the DOM order of elements in the page.
The element position maybe useful in helping to locate a specific element on the page evaluated (e.g smaller numbers are typically toward the beginning of a page and larger numbers typically toward the end of a page).
Element position 1 is the first element.
The highest element position is the last element.
Element position values for most rule/page results will not be consecutive since a rule only applies to a sub set of elements found on a page.