HTML Content Models
HTML labelable content
Elements that can be associated with label, including button, non-hidden input, meter, output, progress, select, textarea and form-associated custom elements. Explicit labels use a matching for and id; labels must not contain unrelated labelable descendants. Categories describe authoring constraints and may overlap; they do not determine CSS display or by themselves guarantee accessibility.
Formal Syntax & Structure
html syntaxhtml
<label for="field">Name</label>Working Example
Example Snippethtml
<label for="field">Name</label><input id="field" name="name">