Rule n° 97 - Fields that support autocompletion are marked in the source code.
Autocompletion consists of providing suggestions as you type. These can be suggestions for queries in a search field or suggestions associated with the beginning of a word typed in another field. It is possible to flag this type of field in the source code, which will allow for optimal use, particularly for people who use screen readers.
Goal
- Improve accessibility.
- Facilitate the user experience.
Solution technique
Use theautocomplete attribute of the input field, filled in with the standardized value corresponding to the field's content. For example:
- username: login ID,
- email: email address,
- tel: phone number,
- country-name: country name,
- cc-name: name on a credit card,
- cc-number: credit card number.
Moyen de contrôle
Check each input field concerned for the presence of theautocomplete attribute, filled in with the standardized value corresponding to the field's content.