4 ms·
I always remembered this as being "invalid" HTML, but a quick Google search turns up nothing. Can anybody shed some light?
by ebzlo 14y ago
I always remembered this as being "invalid" HTML, but a quick Google search turns up nothing. Can anybody shed some light?
- highwind 14y agoAre you thinking Improperly nesting elements? <i>Some <b>text</i> here</b> In that case, the label tag surrounding the input tag doesn't violate this rule.
- ygra 14y agoIt's not invalid; it's one of the two ways of using a label element. However, IE 6 didn't support it which is why I always resorted to the ID variant. The difference in typing isn't that large anyway.