You are here : cssCSS 3text-decoration

text-decoration - CSS 3

The text-decoration property specifies the decoration added to text.Note: In CSS3, the text-decoration property is a shorthand property for text-decoration-line,
text-decoration-color, and text-decoration-style, but this is currently not supported in any of the major browsers.Note: In CSS3 you can use the 
text-decoration-color property to change the color of the decoration, otherwise the color is the same as the color of the text.


text-decoration: none|underline|overline|line-through|initial|inherit;


h1 {    text-decoration: overline;}
	h2 {    text-decoration: line-through;}
	h3 {    text-decoration: underline;}

Output / Return Value


Alternatives / See Also