CSS text decoration Property
CSS text-decoration Property
The text-decoration property is used to set the decoration added to the text. It is a shorthand property for:-
- text-decoration-line
- text-decoration-color
- text-decoration-style
- text-decoration-thickness
Default Value:-
Its default value is none currentColor solid auto.
Syntax:-
Its syntax is:- text-decoration: text-decoration-line text-decoration-color text-decoration-style text-decoration-thickness | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
text-decoration-line | Sets the kind of text decoration to use. |
text-decoration-color | Sets the color of the text-decoration. |
text-decoration-style | Sets the style of the text-decoration. |
text-decoration-thickness | Sets the thickness of the decoration line. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |