Click to Rate and Give Feedback
Properties
 BGCOLOR Attribute
BGCOLOR Attribute

Sets the background color behind an object.

Syntax

HTML <ELEMENT BGCOLOR=sColor ... >
ScriptingN/A

Possible Values

sColorA String that specifies one of the color names or RGB values in the Color Table.

Remarks

Microsoft JScript supports the entire set of colors as color names and as the corresponding RGB values. However, JScript always returns the property as a string specifying the RGB color value, regardless of the format the value was set to.

Some browsers do not recognize color names; but all browsers should recognize RGB color values and display them correctly.

Standards Information

This attribute is a Microsoft extension to HTML World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

COL, COLGROUP

See Also

background, bgColor
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker