Introduction of Css Background-Color property
css background property is used to change background of html tag.
Syntex :
selector
{
background-color :color-name or color-value;
}
Background-color value can be in following way
- Direct color-name : We can use direct color name(red,green).
Syntex : selector { background-color :red; } - Using Hash value :We can use hash value(#aabbcc)
Syntex : selector { background-color :#aabbcc; } - Using RGB combination : We can built color using rgb cobmination
Syntex : selector { background-color :rgb(10,20,30); } - Example
Syntex : selector { background-color :red; }Click to practice online example
No comments:
Post a Comment