html5 - HTML form autocomplete address semantics -
i working on registration form requires home , work addresses upon submitting. fields follows:
<html> <form> <input name="street-address" autocomplete="home street-address" required /> <input name="postal-code" autocomplete="home postal-code" required /> <input name="locality" autocomplete="home locality" required /> <!-- or "home city" --> <input name="organization" autocomplete="organization" required /> <!-- addressee or department withing organization. optional field --> <input name="addressee" autocomplete="????????" /> <input name="work-street-address" autocomplete="work street-address" required /> <input name="work-postal-code" autocomplete="work postal-code" required /> <input name="work-locality" autocomplete="work locality" required /> </form> </html>
i using http://microformats.org/wiki/hcard , https://html.spec.whatwg.org/multipage/forms.html#attr-fe-autocomplete-organization-title create nice browser compatible autofill form.
what can't figure out if there nice autofill name addressee / department field. familiar / or input?
i assume want use full street-address
. if want use address line 1 try address-line1
.
also google developers page (note: in example see locality, ...
deprecated. use )
Comments
Post a Comment