Skip to main content

HTML Guide

The “label” element may contain at most one “button”, “input”, “meter”, “output”, “progress”, “select”, or “textarea” descendant.

The label element may contain only one labelable descendant.

For example:

<label for="age">
  Age
  <select id="age">
    <option>young</option>
    <option>old</option>
  </select>
</label>

Learn more:

Last reviewed: October 27, 2022

Was this guide helpful?

Related W3C validator issues