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

Do not override nav element semantics. (Deprecated)


Severity Action
no actions


Rule ID Role 6
Definition Overriding a nav element's default role of navigation landmark must only be done in special cases. NOTE: Deprecated in favor of HTML 3 a more general rule on role restrictions based on ARIA in HTML specification.
  • A nav element has role restrictions as part of its definition in the W3C HTML5 Specification to help ensure the nav element semantics of identifying navigation landmark content.
  • A nav element should only use role="presentation" if the content of the nav element is not being used to identify navigation landmark content (e.g. repairing poor page semantics).
WCAG Success Criteria

1.3.1 Info and Relationships (Level A, Primary Success Criterion)

Rule Category Styling/Content
Scope Element
Target Resources nav element
  • nav
  • The nav element with no role value by default defines a navigation landmark, but the role="navigation" is allowed to support legacy pages.
  • If the nav element does not identify a navigation landmark content use a different element that does identify the semantics of content.
  • In rare cases role="presentation" can be used when the nav element does not represent the website or page navigation links on the page (e.g. repairing poor page semantics).
  • Any other role values are not allowed on nav elements.
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.