label Attributelabel Attributelabel is declared on the element: optgrouplabel is declared on the element: optionThe label attribute is #REQUIRED on
optgroup
elements and optional on option
elements.
On an optgroup
element it provides a label for the option group to be rendered within the
select list.
On an option
element it may be used to specify a short label for the option,
to be used by the user agent instead of the contents of the option
element. However, this functionality is inconsistently supported
- Opera, for example, renders the label
attribute's contents, whereas Firefox does not.
The label attribute is not present in the
*W3C XHTML 1.1 Basic Forms Module.