WCAG 1.3.6: Identify Purpose
Introduction to WCAG 1.3.6 Identify Purpose
WCAG 1.3.6 Identify Purpose is a Level AAA success criterion introduced in WCAG 2.1. It states that the purpose of user interface components, icons, and regions can be programmatically determined. This criterion aims to provide a more tailored and efficient experience for users, particularly those with cognitive disabilities or users who rely on specialized assistive technologies (AT) or input methods.
By making the purpose of UI elements explicit and machine-readable, assistive technologies can present information more effectively, offer customized displays, or provide simplified interfaces. For instance, an AT could automatically fill in common form fields, provide a visual cue for a 'search’ region, or allow users to navigate directly to a 'main content’ area by its identified purpose.
Why WCAG 1.3.6 Matters: Accessibility Impact and User Groups
Ensuring the purpose of UI components is programmatically determinable significantly enhances the user experience for various groups:
Success Criteria and Requirements for 1.3.6
The core requirement of WCAG 1.3.6 is that the "purpose of user interface components, icons, and regions can be programmatically determined." This means:
The most common way to satisfy this criterion is by using appropriate semantic HTML5 elements and attributes, particularly the autocomplete attribute for form inputs, and WAI-ARIA roles and attributes where native semantics are insufficient.
For common input purposes, WCAG 2.1 references a predefined list of input purposes. By using the correct autocomplete values (e.g., autocomplete="email", autocomplete="tel", autocomplete="name", autocomplete="street-address"), browsers and assistive technologies can identify the data type expected in that field.
Practical Guidelines for Compliance
1. Utilize Semantic HTML5 Elements
Always prioritize native HTML5 elements that inherently convey purpose.
2. Employ the autocomplete Attribute for Input Fields
For input fields requesting common types of user information, use the autocomplete attribute with appropriate tokens.
3. Use WAI-ARIA Roles and Properties Appropriately
When native HTML semantics are not available or sufficient, use ARIA to explicitly state the purpose.
4. Ensure Accessible Names for Icons and Controls
Icons acting as controls or conveying important information must have an accessible name that clearly states their purpose. This can be achieved using <span class="sr-only"> text, aria-label, or aria-labelledby.
Examples of Correct and Incorrect Implementations
Correct Implementations
Semantic Navigation and Search
Explanation: The <nav> element inherently identifies a navigation region. The role="search" explicitly identifies the search region, helping AT users quickly locate it. Both elements also have accessible names (aria-label and <label> respectively).
Form Input with Autocomplete
Explanation: The autocomplete attribute on each input field explicitly declares its expected purpose (e.g., given-name, email, tel). This allows browsers to offer autofill suggestions and assistive technologies to inform users of the field’s data type.
Icon Button with Accessible Name
Explanation: The button uses an icon for its visual representation. The aria-label="Add to Cart" explicitly states the button’s purpose, making it understandable for screen reader users and other AT. The icon itself is hidden from AT with aria-hidden="true" to prevent duplicate announcements.
Incorrect Implementations
Generic DIVs for Navigation and Search
Explanation: Using generic <div> elements for navigation (.menu) and search (.search-section) without appropriate ARIA roles means their purpose cannot be programmatically determined by assistive technologies. The search button also lacks an accessible name, making the magnifying glass icon ambiguous for screen reader users.
Missing Autocomplete on Input Fields
Explanation: While the labels provide visual and programmatic names for the fields, the absence of the autocomplete attribute prevents browsers from offering autofill suggestions and assistive technologies from definitively knowing the expected data purpose. For instance, an AT cannot confidently offer a stored email address for the "Your Email" field without autocomplete="email".
Best Practices and Common Pitfalls
Best Practices
Common Pitfalls
Conclusion
WCAG 1.3.6 "Identify Purpose" is a crucial criterion for creating truly adaptive and personalized web experiences. By diligently applying semantic HTML5, the autocomplete attribute, and appropriate WAI-ARIA, developers can ensure that the purpose of UI components, icons, and regions is programmatically determinable. This leads to a more efficient, less frustrating, and more inclusive web for everyone, especially those with cognitive or motor disabilities who rely on explicit semantic information to navigate and interact with digital content.
Related posts
- WCAG 5.2.3: Complete processes
- WCAG 5.2.4: Only Accessibility-Supported Ways of Using Technologies
- WCAG 5.2.5: Non-Interference
- WCAG 5.3.1: Required elements of the conformity declaration
- WCAG 5.3.2: Optional Components of a Conformance Claim
Still looking for answers?
Ask our experts using online chat