Page Title: PG SLOT 999 PGSLOT.ORG
July 25, 2021 07:38

li element group item semantics. (Deprecated)


Severity Action
no actions


Rule ID Role 11
Definition li elements must only have group item role values of listitem (default - do not set), menuitem, menuitemcheckbox, menuitemradio, option, tab, treeitem or presentation. NOTE: Deprecated in favor of HTML 3 a more general rule on role restrictions based on ARIA in HTML specification.
  • The li element have role restrictions as part of their definition in the W3C HTML5 Specification.
  • When li elements only need to use the role attribute when they are part of interactive widgets and are restricted to widget group item roles.
  • The role values used identify grouping widget roles to ensure that their native grouping semantics are not inadvertently overridden by non-grouping widget or landmark roles.
WCAG Success Criteria

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

Rule Category Styling/Content
Scope Element
Target Resources li elements
  • The li elements when used as part of widgets must be used to indicate an item in a grouping widget role.
  • In rare cases role="presentation" is allowed on a li element when the element is not being used to represent an item in a list.
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.