text-decoration

The text-decoration property specifies decorations that are added to the text of an element.

text-decoration: none | [ underline || overline || line-through || blink ] | inherit
Initial: none
Applies To: all elements
Inherited: no
Percentages: NA
Media: visual

Values

Δ

text-decoration: value;
 
Value: Description:
blink Alternates between visible and invisible text
inherit Takes the same computed value as the property for the element's parent
line-through Line through text
none No text decoration
overline Line above text
underline Line below text

DOM

Δ

[window.]document.getElementById("element-id").style.textDecoration = "text-decoration";

Example | Values | line-through

Δ

Example | Values | none

Δ

Example | Values | overline

Δ

Example | Values | underline

Δ

Example | DOM

Δ

References

Δ