'background-color' Syntax and Note : background color « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'background-color' Syntax and Note

Note:

Sets the background color.

Syntax:
    
element { background-color: value }
elementID.style.backgroundColor = "value"
document.all.elementID.style.backgroundColor = "value" // IE only
    

      
      








Related examples in the same category

1.'background-color' Example
2.'background-color' Possible Values
3.'background-color' is applied to