bgColor attribute (body, table, td, ...)
Sets the background color.
This attribute is deprecated. Use the background-color style property instead.
JavaScript page for this attribute: bgColor. You can find other example(s) there. |
Possible values:
A legal color value. It can be a hexadecimal, RGB or predefined color value. For more information, see the page for colors.
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the bgColor attribute:
|
||||
<body bgcolor="red"> </body> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
Recommendation:
|
||||
<body style="background-color:red;"> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
Related pages:
External links:
User Contributed Comments