dimanche 22 mars 2015

How should I code my forms so that I can take advantage of autofill?


Every login dialog you create should be tested to work with the default password managers in …



-- Jeff Atwood, http://ift.tt/1Iy3Js1


It seems like many sites have problems with autofill and my google foo did not find me any sites that define how to do this correctly.


I imagine there is some way to id or name these fields so that all of the password managers recognize them. In fact I imagine we can take this beyond just username and password. I'd like to know how to code my html so that browsers and tools like lastpass will be able to autofill the following fields.



  • email

  • username


  • password



    • password confirmation




  • Name



    • first, last, middle




  • phone number




  • address



    • street address line 1, 2, 3

    • city, state (subcountry), postalcode, country




  • credit card



    • full name

    • account number

    • security code

    • expiration date




Aucun commentaire:

Enregistrer un commentaire