1.3.5 Identify Input Purpose
This check ensures that websites provide autocomplete
attributes for form inputs and that they align with their intended purpose.
The autocomplete attribute helps browsers suggest relevant values when users fill out forms.
When an input field includes an autocomplete
attribute, it should correctly describe the type of data being requested.
Common autocomplete values include:
autocomplete="name"
for full nameautocomplete="email"
for email addressesautocomplete="tel"
for phone numbersautocomplete="street-address"
for street addressesThis check applies to web pages that contain input fields with an autocomplete
attribute.
Proper use of the autocomplete
attribute enhances both usability and accessibility in the following ways:
When autocomplete
attributes are incorrectly assigned, users may experience:
This section provides pass and fail examples of this check.
Correct autocomplete
values that match the purpose of the input field:
<form>
<label for="email">Email:</label>
<input type="email" id="email" name="email" autocomplete="email">
</form>
The autocomplete="email"
attribute in this example correctly identifies the field as an email input.
A form with properly assigned autocomplete
attributes for multiple fields:
<form>
<label for="fname">First Name:</label>
<input type="text" id="fname" name="fname" autocomplete="given-name">
<label for="lname">Last Name:</label>
<input type="text" id="lname" name="lname" autocomplete="family-name">
</form>
The given-name
and family-name
values ensure that the browser autofills the first and last names separately.
Incorrect or misleading autocomplete
attributes:
<form>
<label for="phone">Phone Number:</label>
<input type="text" id="phone" name="phone" autocomplete="street-address">
</form>
In this example, autocomplete="street-address"
is incorrect for a phone number field.
Irrelevant autofill suggestions.
The autocomplete
value does not match the expected input type:
<form>
<label for="email">Email:</label>
<input type="text" id="email" name="email" autocomplete="password">
</form>
In this example, autocomplete="password"
is not appropriate for an email field.
Non-existent or custom value:
<form>
<label for="dob">Date of Birth:</label>
<input type="text" id="dob" name="dob" autocomplete="dateofbirth">
</form>
In this example, autocomplete="dateofbirth"
is not a valid attribute.
The correct value is autocomplete="bday"
.
This check primarily benefits:
This section provides instructions on how to review and fix autocomplete
issues.
When this check flags an input field, follow these steps:
Identify the purpose of the field.
Read the field label and determine the kind of data that is expected, for example, name, email, or address.
autocomplete
attribute.<input>
element. autocomplete
attribute.autocomplete
values.This section provides several methods that you can use to fix the issue.
Use the correct autocomplete
value.
Ensure that the autocomplete attribute accurately describes the input field:
<input type="tel" id="phone" name="phone" autocomplete="tel">
Remove or correct invalid autocomplete
values.
If there is an incorrect or custom autocomplete
value, update it or remove it:
<!-- Incorrect -->
<input type="text" id="dob" name="dob" autocomplete="dateofbirth">
<!-- Correct -->
<input type="text" id="dob" name="dob" autocomplete="bday">
Use standardized field names.
Some browsers rely on input name attributes for autofill suggestions. Use consistent names to improve autofill accuracy:
<input type="text" name="street-address" autocomplete="street-address">
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Wed Oct 01 2025 15:55:10 GMT+0000 (Coordinated Universal Time)