NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix b » css1 / css2 properties


This property defines specific text effects. Possible values are blink, line-through, overline, underline, and none. The blink value is actually part of the CSS2 specification but is not supported in IE up to version 6. The text-decoration property is often used with the a element and its associated pseudoclasses (a:active, a:hover, a:link, and a:visited) to turn off link underlining or set different looks for hover or visited states.


a {text-decoration: none;}
a:visited {text-decoration: line-through;}
a:hover {text-decoration: underline;}
.onsale {text-decoration: blink;}
.underlined {text-decoration: underline;}
.struck {text-decoration: line-through;}

Browser and CSS Support Notes

IE 4, 5, 5.5, 6 (no support for blink)
Nav 4, 4.5-4.8 (incomplete), 6, 7
Opera 6, 7

(X)HTML Elements
CSS Properties
Back: text-align Next: text-indent
< Home | About | Chapters | Examples | Errata | Reference | Site Map >