Style textDecorationColor Property
Style textDecorationColor Property
The textDecorationColor property is used for defining the color of the text-decoration. It will only work if the element is already decorated like it has underlines, overlines, linethroughs, etc.
Syntax:-
Its syntax is:- object.style.textDecorationColor OR object.style.textDecorationColor = color | initial | inherit
Return:-
Its return is:- string having text-decoration-color property of an element
Further Explanation:-
Value | Description |
---|---|
color | Specifies color of text-decoration. |
initial | Sets this property to its default value. |
inherit | Inherits property from its parent element. |