Style textDecorationLine Property
Style textDecorationLine Property
The textDecorationLine property is used to either set or return the type of line the decoration will have. Its shorthand property is textDecoration which is combination of textDecorationLine, textDecorationColor, and textDecorationStyle.
Syntax:-
Its syntax is:- object.style.textDecorationLine OR object.style.textDecorationLine = none | underline | overline | line-through | initial | inherit
Return:-
Its return is:- string having text-decoration-line property of an element
Further Explanation:-
Value | Description |
---|---|
none | Specifies no line for text-decoration |
underline | Specifies that a line will be displayed under text |
overline | Specifies that a line will be displayed over text |
line-through | Specifies that a line will be displayed through text |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |