The HTML autocomplete attribute tells browsers and assistive technologies what a form field is for. That can make personal details easier to enter, save time, and reduce typing errors. section 6.1.8
Choose values that match what each field collects:
- Use name, given-name, or family-name for a person’s own name; use current-password or new-password to support sign-in and password managers. section 6.1.8
- Avoid applying personal autofill to third-party details, such as an emergency contact’s name. Omitting autocomplete may be safer than autocomplete="off", which cannot guarantee autofill is prevented. section 6.1.8
<input autocomplete="shipping postal-code"> <input autocomplete="billing postal-code">
Compare autocomplete values for shipping and billing postal-code fields. section 6.1.8
<input autocomplete="section-guest1 given-name"> <input autocomplete="section-guest2 given-name">
See how section tokens distinguish the names of different guests. section 6.1.8
