Do divs inside form tags cause problems?

Something seems to work fine and sometimes not, so should I use divs inside the form or not? and in general there is a guide for which HTML tags will not work inside other tags?

+4
source share
1 answer

Divs does not cause any internal problems within forms. Any CSS or JS rules that can be applied to them can cause problems, but the same goes for any element.

The HTML 4.01 specification includes a DTD reading guide . This applies to HTML 3.2 and 4.x, as well as to XHTML 1.x. HTML 5 does not have an official DTD, so you need to pay attention to the β€œcontent model” for each element in spec .

+6
source

All Articles