0

As specified here and debated here it is invalid to put a DIV tag inside a LABEL. What if, however, you make the element an inline element with the CSS rule display: inline?

My guess is that this won't change anything, because the spec does not mention CSS at all. I don't see however how this should go together with Web Components that allow me to build my very own form control just from DIVs with CSS styling and proper ARIA a11y declarations.

vanthome
  • 4,816
  • 37
  • 44

1 Answers1

0

Correct, CSS is independent and have no influence on document validity. So that construct will be still invalid ( according to specification and according to w3c validator ).

iiic
  • 1,366
  • 2
  • 15
  • 23