7.3. Use the autocomplete attribute to facilitate auto-fill

To facilitate auto-fill on fields referring to personal information:

  1. Add an autocomplete attribute to the field.
  2. 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" />

Comments

Back to top