Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML optgroup label attribute

HTML label property

HTML optgroup Tag Reference HTML tag

Example

Two option groups with labels:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the label property.


Definition and Usage

The label attribute specifies a descriptive label for the option group.


Differences between HTML 4.01 and HTML5

none.


Syntax

HTML tag