The HTML Attribute reference

"label" - html Attribute

  • This attribute specifies the label for the option group or option

Value(s): text
Used in the element(s):
Elements Description
optgroup This element defines a group of choices within a SELECT menu. Attribute, label, usage:
  • Specifies the label for the option group.
option This element defines a menu choice within a SELECT menu. Attribute, label, usage:
  • Allows authors to specify a shorter label for an option than the content of the OPTION element. When specified, user agents should use the value of this attribute rather than the content of the OPTION element as the option label.

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.