Is it correct to use DIV inside FORM?

前端 未结 10 1659
旧巷少年郎
旧巷少年郎 2020-12-02 17:51

I\'m just wondering what are you thinking about DIV-tag inside FORM-tag?

I need something like this:

&l
10条回答
  •  感情败类
    2020-12-02 18:49

    Absolutely not! It will render, but it will not validate. Use a label.

    It is not correct. It is not accessible. You see it on some websites because some developers are just lazy. When I am hiring developers, this is one of the first things I check for in candidates work. Forms are nasty, but take the time and learn to do them properly

提交回复
热议问题