Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BGCOLOR attribute

Sets the background color behind an object.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5

Syntax

HTML
<element BGCOLOR="" ... >
JavaScript

Property values

sColor

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

Standards information

Remarks

JavaScript supports the entire set of colors as color names and as the corresponding RGB values. However, JavaScript 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.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

See also

col
colGroup
Reference
background
bgColor

 

 

Show:
© 2014 Microsoft