Color Property in CSS
The color Property
The CSS color property specifies the color of the text. There are different methods for specifying the color of the element. One method is simple by putting the color name while the other methods include Hex values or RGB values.
Syntax:-
Its syntax is:-
< style >
element {
color: color| initial| inherit;
}
< /style >
Further Explanation:-
Value | Description |
---|---|
color | Specifies the text color. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |