Horje

What is HTML <option> label Attribute

Definition and Usage

The label attribute specifies a shorter version of an option.

The shorter version will be displayed in the drop-down list.


Browser Support

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

Syntax

<option label="text">

Attribute Values

Value Description
text A shorter version for the option




Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin