Style textDecoration Property
Style textDecoration Property
The textDecoration property is used to either set or return one or more decorations for a text. For specifying more than one decoration, we need to create a space-separated list.
Syntax:-
Its syntax is:- object.style.textDecoration OR object.style.textDecoration = none | underline | overline | line-through | blink | initial | inherit
Return:-
Its return is:- a string containing decoration added to the text
Further Explanation:-
Value | Description |
---|---|
none | Defines normal text. |
underline | Defines line under the text |
overline | Defines line over the text |
line-through | Defines line through the text |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |