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