Extensible HyperText Markup Language

XHTML.com recommends: PSD to HTML Slicing Service and PSD to HTML by W3 Markup. see your link here

text-decoration

Definition

The text-decoration property specifies the decorative effects that can be applied to text.

Most Web browsers have a built-in CSS rule that underlines hyperlinks as shown in the screen shot below.

Screen shot of a Web browser showing a hyperlink that is underlined.

The text-decoration property can be used to remove the underline effect as shown in the next screen shot.

Screen shot of a Web browser showing a hyperlink that is not underlined.

Example

  1. a {text-decoration: none}
  2. em {text-decoration: underline overline}

Characteristics

Possible values

none
No text decoration.
underline
Line underneath text.
overline
Line over text.
line-through
Line through the middle of text.
blink
Blinking text.
inherit
Use the same computed value as the parent element for this property.

underline, overline, line-through and blink can be used in combination, separated by a space as shown in the example above.

Default value

none

Applies to

All elements

Inherited

No

See also