The label element may contain at most one input, button, select, textarea, or keygen descendant.

That's what the validator says for:

    <!DOCTYPE html>
    <html>
      <head>
    <meta charset="utf-8" />
    <title>Test</title>
      </head>
      <body>
        <label>
          <input type="radio" />
          <input type="text" />
        </label>
      </body>
    </html>

However, the HTML5 W3C Candidate Recommendation 6 August 2013
[suggests][1] that multiple input ("labelable") elements are OK:

> If the for attribute is not specified, but the label element has a
> labelable element descendant, then the first such descendant in tree
> order is the label element's labeled control.

Who is right?

[1]: http://www.w3.org/TR/html5/forms.html#the-label-element

Received on Tuesday, 1 October 2013 07:37:39 UTC