Use of the label attribute in <option> elements:
![]()
The label attribute is supported in all major browsers.
Note: The label attribute of the <option> tag is not supported in Internet Explorer 7 and earlier versions.
The label attribute specifies a shorter version of an option.
The shorter version will be displayed in the drop-down list.
NONE.
| Value | Description |
|---|---|
| text | A shorter version for the option |
HTML <option> tag
Your message has been sent to W3Schools.