body element role semantics. (Deprecated)

Rule ID Role 2
Definition The body element must only document (default) or application role semantics. NOTE: Deprecated in favor of HTML 3 a more general rule on role restrictions based on ARIA in HTML specification.
  • 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.
Required No for HTML5 and ARIA Techniques ruleset mapping
WCAG Success Criteria

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

Rule Category Styling/Content
Scope Element
Target Resources body element
  • 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