Is there a naming convention for HTML form fields for good auto completion across all modern browsers?

前端 未结 1 1582
萌比男神i
萌比男神i 2021-02-14 00:52

Is there a naming convention for form fields? For what fields do Chrome, IE, Firefox look for? I mean, one for all, or at least most of the modern browsers.

I stumbled u

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-14 01:24

    You seem to have linked to the answers. If you are not using high-level frameworks like CakePHP or Ruby on Rails, though, the first and third links do not apply.

    The thing is, it's Google Toolbar and Wand's job to fill out forms successfully. Given the scope of the internet, the toolbar must have tons of redundancy.

    Therefore, as long as you keep your form fields semanticly named, the form should autofill.

    ECML is E-Commerce Modeling Language. Ecom_ simply stands for E-Commerce. If you need to sell stuff, use that naming convention.

    0 讨论(0)
提交回复
热议问题