HTML <option> label attribute

Definition and Usage

label The attribute specifies the shorter version of the option.

This shorter version will be displayed in the dropdown list.

Example

Use the label attribute in the <option> element:

<label for="cars">Please select a car brand:</label>
<select id="cars">
  <option label="Audi">Audi (Auto Union Deutschland Ingolstadt)</option>
  <option label="BYD">BYD (Build Your Dreams)</option>
  <option label="Mercedes">Mercedes (Mercedes-Benz)</option>
  <option label="Volvo">Volvo (Latin for "I roll")</option>
</select>

Try It Yourself

Syntax

<option label="text">

Attribute Value

Value Description
text The shorter version of the option.

Browser Support

The numbers in the table indicate the first browser version that fully supports this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Supported 8.0 Not Supported Supported Supported