The text-decoration shorthand CSS property sets the appearance of decorative lines on text. It is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style, and the newer text-decoration-thickness property.
- text-decoration-line
- Sets the kind of decoration used, such as underline or line-through.
- text-decoration-color
- Sets the color of the decoration.
- text-decoration-style
- Sets the style of the line used for the decoration, such as solid, wavy, or dashed.
- text-decoration-thickness
- Sets the thickness of the line used for the decoration.
text-decoration="underline"
text-decoration="overline red"
text-decoration="none"