Skip to main content
Version: v6

Form-field should utilize the autocomplete attribute

Form-field should utilize the autocomplete attribute — rule summary
FieldValue
Rule codeFormField_Autocomplete_Missing
WCAG conformance levelAA
WCAG success criterion1.3.5 Identify Common Purpose
Must be fixed at sourceNo

Description

Form-fields may have an autocomplete attribute added to them indicating what kind of data is expected and providing a browser auto-fill capability for the user. We determined that this form-field is missing an autocomplete value. View the full list of possible autocomplete attributes for form-fields here: https://www.w3.org/TR/WCAG21/#input-purposes

How to fix

Review each <input> form field's purpose, and review the list of available autocomplete values. If the field has an autocomplete option available, add the autocomplete attribute with the appropriate value.

<label for="full-name">Full name</label>
<input type="text" name="full-name" id="full-name" autocomplete="name">