<?xml version="1.0" encoding="utf-8"?>

The autocomplete attribute

The autocomplete attribute

Many forms ask for the same information — name, address, phone number, etc. Allowing autocomplete can make your users' lives much easier — instead of typing all this information anew, they can just choose from the list of predictions.

You can add the autocomplete attribute to <input>, <textarea>, <select>, and <form> elements to enable autocomplete. The value "on" allows the browser to automatically complete the input, although it doesn't provide any guidance about the type of data expected in the field. You can learn more about how to optimize autocomplete on MDN Web Docs.[1]

Improve your UX & Product skills with interactive courses that actually work