The background-color property is used to give a background color to the web page.
The background-color property has the value of ‘transparent’ as the default value for the web page and can take following values
Value |
Description |
<color> |
The value of color in rgb or hexadecimal or color keyword |
Transparent |
Indicates that no color should be used |
It is used as
body
{ background-color: #0f0; color: #F0F; }
{ background-color: #0f0; color: #F0F; }