label attribute (optgroup)
Sets the text to show as the contents of the option group element.
The displayed text is unselectable in the drop-down list (select), it is useful for grouping the list items.
String that sets the label of the group.
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the label attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments