Page Title: Datenbanken - Normalisierung - Funktionsweise
May 20, 2018 05:04

article element role semantics

Actions

Severity Action
no actions

Details

Rule ID Role 4
Definition article element must only have role semantics of region, article (default), main, document or application.
Purpose
  • The article element has role restrictions as part of its definition in the W3C HTML5 Specification.
  • The article element can be primarily be used to identify news paper or magazine articles, a list or nested messages in a comment or discussion list.
  • The article element might also be used to identify static text and image content in a web application using the region or document role.
  • The article element might also be used to identify a section of form controls and widgets in a web application using the region or application role.
WCAG Success Criteria

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

Rule Category Styling/Content
Scope Element
Target Resources article element
  • article
Techniques
  • If the content of the article element is primarily form controls and/or widgets use role="application" on the article element.
  • If the content of the article element is used as the container for the main content of the page use role="main" on the article element or preferably change the element to a main element.
  • If the content of the article element is used as the container for a message in nested discussion list, comment to a blog, or as a magazine/news story use role="article" on the article element.
  • If the content of the article element is used as a sub-section of another landmark use role="region" with an accessible name to identify the sub-section.
  • If the content of the article element does not meet any of the other techniques do not use the role attribute.
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.