Page Title: Anzeigenanalyse - Plakatanalyse - Bildanalyse
May 20, 2018 05:00

main element role semantics.

Actions

Severity Action
no actions

Details

Rule ID Role 1
Definition Overriding a main element's default role of main landmark must only be done in special cases.
Purpose
  • The main element has role restrictions as part of its definition in the W3C HTML5 Specification.
  • The main element semantics are to identify the primary content on the page.
  • If the main element does not contain the primary content of the web page the main landmark semantics the of the element must be changed.
WCAG Success Criteria

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

Rule Category Styling/Content
Scope Element
Target Resources main elements
  • main
Techniques
  • HTML5 enabled browsers and modern assistive technologies identify the main element as a main landmark without role="main" being specified, but role="main" is allowed for backward compatibility.
  • If the main element does not contain the primary content of the web page due to author error use role="presentation" to override the main landmark semantics or change element to an element that correctly identifies the semantics of the content.
  • If you need to support Microsoft Internet Explorer(IE) 8, use div[role="main"] instead of the main element to indicate primary content, since IE 8 does not support accessibility features of HTML5 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.