Open In App

HTML | DOM Option label Property

The Option label property in HTML DOM is used to set or return the value of the label attribute in an <option> element. The label attribute is used to specify the label for an option. This attribute contains the text value which represents the shorted label for the option.

Syntax:



Article Tags :