7.3. Use the autocomplete
attribute to facilitate auto-fill
To facilitate auto-fill on fields referring to personal information:
- Add an
autocomplete
attribute to the field. - Populate the
autocomplete
attribute according to the type of information expected.
<label for="first-name">Your firstname</label> <input type="text" id="first-name" name="first-name" autocomplete="given-name" />
Note
The possible values for the autocomplete
attribute are standardized.