The label
attribute specifies a shorter version of an option.
The shorter version will be displayed in the drop-down list.
The numbers in the table specify the first browser version that fully supports the attribute.
<option label="text">
Value | Description |
---|---|
text | A shorter version for the option |
How to add HTML <option> Tag | HTML Tag |
How to Use of <option> in a <datalist> element: | HTML Tag |
How to Use of <option> in <optgroup> elements | HTML Tag |
What is HTML <option> disabled Attribute | HTML Tag |
How to add HTML <option> disabled Attribute | HTML Tag |
What is HTML <option> label Attribute | HTML Tag |
What is HTML <option> label Attribute | HTML Tag |
What is HTML <option> selected Attribute | HTML Tag |
How to add HTML <option> selected Attribute | HTML Tag |
What is HTML <option> value Attribute | HTML Tag |
How to add HTML <option> value Attribute | HTML Tag |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |