Grammar:
background-color:transparent | Color
Parameters:
Transparent: background color transparent
Color: Specifies the color. See Color units and Appendix: color Tables
Description
Sets or retrieves the background color of an object.
The corresponding script attribute is backgroundcolor. Please refer to the other bibliography I have written.
Example:
P {background-color:silver}div {Background-color:rgb (223,71,177)} body {background-color: #98AB6F}pre {background -color:transparent; }
Background-color--background color, defining the color of the background
Value: <color> | Transparent | Inherit
<color>: Color notation
Transparent: Transparent
Inherit: Inheritance
Initial value: Transparent
Inheritance: Yes
Applies to: all elements
Background: background. Color: color.
The background color corresponds to the foreground color, and you can define the colors of the background.
Example
body {background-color:green;}
Defines the background of a Web page using green.