Style color Property
Style color Property
The color property is used to either set or return the color of the text.
Syntax:-
Its syntax is:- object.style.color OR object.style.color = color|initial|inherit
Return:-
Its return is:- string having text-color of an element
Further Explanation:-
Value | Description |
---|---|
color | Specifies the color of the text. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |