text-decoration CSS property specifies the decorations to be applied on the text content of an element such as underline, overline, etc.
The following table summarizes the usages context and the version history of this property.
|Yes, as some of the properties of the shorthand are animatable. See animatable properties.
|CSS 1, 2, 3
The syntax of the property is given with:
The example below shows the
text-decoration property in action.
ExampleTry this code »
The following table describes the values of this property.
|Produces no text decoration.
|Each line of text is underlined.
|Each line of text has a line above it.
|Each line of text has a line through the middle.
|Makes the text blink (alternates between visible and invisible).
|If specified, the associated element takes the computed value of its parent element
text-decoration property is supported in all major modern browsers.
blink value of this property is only supported by Firefox and Opera. This value is deprecated in favor of animations, you should better avoid this value.