How can I write a form that assists my browser's auto-complete feature?


The official specification of HTML5 states:

When the autofill field name is "on", the user agent should attempt to use heuristics to determine the most appropriate values to offer the user, e.g. based on the element's name value, the position of the element in the document's DOM, wha

Use any of the following as values for the autocomplete attribute:

)

Field NameMeaning
"name"Full name
"honoritic-prefix"Prefix or title (e.g. "Mr.","Ms.","Dr.","M||e")
"given-name"Given name (in some Western cultures, also known as first name
"additional-name"Additional name (in some Western cultures, also know as middle name, forenames other than the first name)
"family-name"Family name (in some Western cultures, also know as the last name or surname)
"honorific-suffix"Suffix (e.g. "jr.","B.Sc.","MBASW.","||")


Updated on: 16-Jun-2020

76 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements