WCAG 1.3.5: Identify Input Purpose
WCAG 1.3.5: Identify Input Purpose
WCAG 1.3.5, part of the WCAG 2.1 guidelines at Level AA, mandates that the purpose of each input field collecting user information must be programmatically determinable. This success criterion is crucial for improving the accessibility and usability of forms by allowing browsers and assistive technologies to understand the expected type of information for various input fields.
By explicitly defining the purpose of input fields, users can benefit from enhanced features such as autofill, predictive text, and personalized assistance, making form completion faster, easier, and less prone to errors.
Why Identify Input Purpose Matters
The ability to programmatically determine the purpose of an input field significantly impacts several user groups:
Success Criteria and Requirements
WCAG 1.3.5 states:
The purpose of each input field collecting user information can be programmatically determined when:
The primary mechanism for meeting this criterion in HTML is the autocomplete attribute. This attribute takes a token (or a set of tokens) that corresponds to specific types of user information, as defined by the HTML Living Standard’s Autofill section and subsequently referenced by WCAG 2.1.
Relevant HTML autocomplete Tokens
Some of the commonly used autocomplete tokens include:
Practical Guidelines for Compliance
To comply with WCAG 1.3.5, follow these guidelines when creating forms:
Examples
Correct Implementation
Below are examples demonstrating correct usage of the autocomplete attribute for various input fields.
Email Input
Full Name Input
Shipping Address Input (Street Address)
Telephone Number Input
Incorrect Implementation
These examples show common mistakes where the autocomplete attribute is either missing or incorrectly used.
Missing autocomplete (Common Pitfall)
Without the autocomplete attribute, the purpose cannot be programmatically determined.
Generic autocomplete for Specific Fields
Using a too-general autocomplete value when a more specific one is available reduces usefulness.
Incorrect autocomplete Value
Using a non-standard or misspelled value will not work.
Best Practices and Common Pitfalls
Best Practices
Common Pitfalls
By diligently applying the autocomplete attribute with correct values, developers can significantly enhance the accessibility and usability of web forms, making them more efficient and user-friendly for everyone.
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