Style textDecorationStyle Property
Style textDecorationStyle Property
The textDecorationStyle property is used to either set or return how the line will be displayed.
Syntax:-
Its syntax is:- object.style.textDecorationStyle OR object.style.textDecorationStyle = solid | double | dotted | dashed | wavy | initial | inherit
Return:-
Its return is:- a string containing the text-decoration-style property of an element
Further Explanation:-
Value | Description |
---|---|
solid | The line will display as single line |
double | The line will display as double line |
dotted | The line will display as dotted line |
dashed | The line will display as dashed line |
wavy | The line will display as wavy line |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |