Google Chrome now added support for an experimental new "autocomplete type" attribute for form fields that allow web developers to unambiguously label text and select fields with common data types such as 'full-name' or 'street-address' and guarantee that their site's forms work correctly with Chrome Autofill and other form-filling providers, announced Ilya Sherman, Software Engineer.
For now, this new attribute is implemented in Chrome as x-autocompletetype to indicate that this is still experimental and not yet a standard, similar to the webkitspeech attribute released last summer.
"With this attribute, web developers can drive conversions on their sites by marking their forms for auto-completion without changing the user interface or the backend," Sherman added.
Writing furhter he notes, "We've been working on this design in collaboration with several other autofill vendors. Like any early stage proposal we expect this will change and evolve as the web standards community provides feedback, but we believe this will serve as a good starting point for the discussion on how to best support autofillable forms in the HTML5 spec."
Just add an attribute to the input element, for example an email address field might look like:
<input type="text" name="field1" x-autocompletetype="email" />
For more information, you can read the full text of the proposed specification.