body element role semantics.

Definition The body element must only document (default) or application role semantics.
Purpose
  • The body element has role restrictions as part of its definition in the W3C HTML5 Specification.
  • The body element should only be used to indicate whether the page is primarily has document or application semantics.
  • The default (e.g. no role attribute) is document role semantics.
Mappings
  • HTML4 Legacy Techniques (Recommended)
  • HTML5 and ARIA Techniques (Required)
WCAG 2.0 Success Criteria

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

Rule Category Styling/Content
Scope Element
Target Resources body element
Techniques
  • If the web page is primarily composed of forms and widgets that benefit from using the role="application" on the body element.
  • If the web page is primarily composed of non interactive text and images do not use the role attribute on the body element.
Informational Links