HTML <option> labelAttribute
Example
Use the label attribute in the <option> element:
<select>
<option label="Volvo">Volvo (Latin for "I roll")</option>
<option label="Saab">Saab (Swedish Aeroplane AB)</option>
<option label="Mercedes">Mercedes (Mercedes-Benz)</option>
<option label="Audi">Audi (Auto Union Deutschland Ingolstadt)</option>
</select>
<option label="Volvo">Volvo (Latin for "I roll")</option>
<option label="Saab">Saab (Swedish Aeroplane AB)</option>
<option label="Mercedes">Mercedes (Mercedes-Benz)</option>
<option label="Audi">Audi (Auto Union Deutschland Ingolstadt)</option>
</select>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
Except for Firefox, all other major browsers support the label attribute.
Note:Internet Explorer 7 and earlier versions do not support the label attribute of the <option> tag.
Definition and Usage
The label attribute specifies a shorter version of an option.
The specified shorter version will be displayed in the drop-down list.
Differences between HTML 4.01 and HTML5
None.
Syntax
<option label="text">
Attribute Values
| Value | Description |
|---|---|
| text | A shorter version of the option. |
HTML <option> tag Other Extensions