Property: BackGround Color
Usage:
background-color: red;
background-color: #343434;
Definition:
Background Color in html can be set using the css property background-color.
It accepts values in two formats
a)color name
b)#xxyyz where xx,yy,zz points to hexadecimal values of red,green,blue
The following examples will show on how to set the background color in html using the css tag.
Example 1:
<font style="background-color: green;"> color name </font>
Result:
color name
Example 2:
<font style="background-color: #888888;"> html text background using css</font>
Result:
html text background using css
|