Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Label attribute in <option> elements of select does not display, just the value, value. How do you show the label value?

  • No replies
  • 5 have this problem

I have a select with several long option values. I am using the label attribute to display a shorter version. Below is a simple example:


  <option label="Volvo">Volvo (Latin for I roll)</option>
  <option label="Saab">Saab (Swedish Aeroplane AB)</option>
  <option label="Mercedes">Mercedes (Mercedes-Benz)</option>
  <option label="Audi">Audi (Auto Union Deutschland Ingolstadt)</option>

It should display "Volvo" for the first select and so on, but instead it is displaying "Volvo (Latin for I roll).

The standards state that the label attribute is valid and it works in all other browsers (IE, Chrome, Safari), so how do I get the label attribute to work in Firefox?

Modified by firefoxrwh

Additional System Details


  • User Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; BRI/2; .NET CLR 1.1.4322; InfoPath.1)

More Information

"application": {
"name": "Firefox",
"version": "18.0.1",
"userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0",
"supportURL": "http://support.mozilla.org/1/firefox/18.0.1/WINNT/en-US/"
"modifiedPreferences": {
"browser.cache.disk.capacity": 358400,
"browser.cache.disk.smart_size.first_run": false,
"browser.cache.disk.smart_size.use_old_max": false,
"browser.cache.disk.smart_size_cached_value": 358400,
"browser.places.smartBookmarksVersion": 4,
"browser.startup.homepage_override.buildID": "20130116073211",
"browser.startup.homepage_override.mstone": "18.0.1",
"extensions.lastAppVersion": "18.0.1",
"gfx.direct3d.prefer_10_1": true,
"network.cookie.prefsMigrated": true,
"places.history.expiration.transient_current_max_pages": 104858,
"places.database.lastMaintenance": 1358789376,
"privacy.sanitize.migrateFx3Prefs": true
"graphics": {
"numTotalWindows": 2,
"numAcceleratedWindows": 2,
"windowLayerManagerType": "Direct3D 10",
"adapterDescription": "AMD Radeon(TM) HD 6620G",
"adapterVendorID": "0x1002",
"adapterDeviceID": "0x9641",
"adapterRAM": "512",
"adapterDrivers": "aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64",
"driverVersion": "8.900.7.1000",
"driverDate": "9-28-2011",
"adapterDescription2": "",
"adapterVendorID2": "",
"adapterDeviceID2": "",
"adapterRAM2": "",
"adapterDrivers2": "",
"driverVersion2": "",
"driverDate2": "",
"isGPU2Active": false,
"direct2DEnabled": true,
"directWriteEnabled": true,
"directWriteVersion": "6.2.9200.16440",
"webglRenderer": "Google Inc. -- ANGLE (AMD Radeon(TM) HD 6620G)",
"info": {
"AzureCanvasBackend": "direct2d",
"AzureFallbackCanvasBackend": "cairo",
"AzureContentBackend": "direct2d"
"javaScript": {
"incrementalGCEnabled": true
"accessibility": {
"isActive": false,
"forceDisabled": 0
"libraryVersions": {
"NSPR": {
"minVersion": "4.9.4",
"version": "4.9.4"
"NSS": {
"minVersion": " Basic ECC",
"version": " Basic ECC"
"minVersion": "",
"version": ""
"minVersion": " Basic ECC",
"version": " Basic ECC"
"minVersion": " Basic ECC",
"version": " Basic ECC"
"extensions": [
"name": "HP Smart Web Printing",
"version": "4.51",
"isActive": false,
"id": "smartwebprinting@hp.com"
"name": "TrueSuite Website Logon",
"version": "5.0",
"isActive": false,
"id": "websitelogon@truesuite.com"