Skip to content
Related Articles

Related Articles

Improve Article

HTML | <option> label Attribute

  • Last Updated : 07 Aug, 2019

The HTML option label Attribute is used to specify the text value which represents the shorted label for option. The shortest version will be displayed in the drop-down list.


<option label="text">

Attribute Values: It contains single value text which specify the shorter version for an option.

Below example illustrates the use of label attribute for an option element.

<!DOCTYPE html> 
        HTML option label attribute
        body { 
        h1 { 
    <h2>HTML option label Attribute</h2
        <option>Choose an option</option
        <option label="HTML">HTML Language</option
        <option label="JAVA">JAVA Programming</option
        <option label="C++">C++ Programming</option
        <option label="PHP">PHP Programming</option
        <option label="PERL">PERL Programming</option


Supported Browsers: The browsers supported by HTML <option> label attribute are listed below:

  • Google Chrome
  • Internet Explorer 8.0
  • Safari
  • Opera

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :