The text-decoration property defines effects on text such as underline, overline, line-through, no underline, and blink.
text-decoration in CSS Versions:
text-decoration: none | [ underline || overline || line-through || blink ] | inherit
No special decorations.
Underlines the text.
Puts a line above the text.
Puts a line through the middle of the text.
Makes the text blink.
The element should have the same text-decoration setting as the parent.
text-decoration Initial Value:
text-decoration Applies To:
This property is not inherited, but elements should match their parent.
text-decoration Browser Support:
<p style="text-decoration : underline;"> This paragraph is underlined. </p>
remove the underline from a link
<a href="#" style="text-decoration : none;"> This link is not underlined.</a>
text-decoration Special Notes:
- You cannot combine values, such as underline and overline.
- Some browsers don't support "blink" and it is not a required part of the CSS specification.
- Elements that have no text will not be affected by this property.