text-decoration

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.

Example

Initial value as each of the properties of the shorthand:text-decoration-color: currentcolortext-decoration-style: solidtext-decoration-line: none
Applies to all elements. It also applies to ::first-letter and ::first-line.

Syntax

  
text-decoration: none;
  

Values

Sets the kind of decoration used, such as underline or line-through.
Sets the color of the decoration.
Sets the style of the line used for the decoration, such as solid, wavy, or dashed.
Sets the thickness of the line used for the decoration.

Browser support

text-decoration112133.51
blink14
shorthand577936448
text-decoration-thickness70

We use cookies to improve your experience. Learn more in our Privacy policy.

×