On Wed, Jul 9, 2014 at 1:58 PM, Crest Christopher <crestchristop...@gmail.com> wrote: > I've had to restyle my form and it has caused the validator to inform me I'm > not allowed to use <p> as a child element of a <label> tag ? >
>From what I can see (searching, etc) the only thing you are supposed to have inside a label is the associated input. You don't have to, but you can. If you wrap the input with the label, you can leave off the 'for' attribute (just read that... had no idea about that one!). There is some language in the spec stating the above, but not being of the right mind to dig into the spec, I didn't see anything obvious stating NOTHING else can be within the label element. So I wonder if <span> might be allowed? I'd have to whip up a test and run it through the validator and see if it complains. -- Tom Livingston | Senior Front-End Developer | Media Logic | ph: 518.456.3015x231 | fx: 518.456.4279 | mlinc.com ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/