Skip to content

Files

Latest commit

 

History

History
23 lines (17 loc) · 574 Bytes

autocomplete-valid.md

File metadata and controls

23 lines (17 loc) · 574 Bytes

Pattern: Invalid autocomplete value

Issue: -

Description

The autocomplete attribute on form inputs must use valid values from the HTML specification. Invalid values can decrease accessibility and prevent browsers from properly assisting users with form completion.

Examples

Example of incorrect code:

<input autocomplete="user-name" />
<input autocomplete="random" />
<input autocomplete="email-address" />

Example of correct code:

<input autocomplete="name" />
<input autocomplete="email" />
<input autocomplete="street-address" />