This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

text-decoration-underline

Overview table

Initial value
:

Applies to
All elements
Inherited
No
Media
visual

Computed value
:

Animatable
No

CSS Object Model Property
:

Syntax

  • text-decoration-underline: VARIANT_FALSE
  • text-decoration-underline: VARIANT_TRUE

Values

VARIANT_TRUE
Apply the underline.
VARIANT_FALSE
Prevent the underline.

Examples

This example uses the textDecorationUnderline property to underline the text when the user clicks the text with the mouse.

<P onclick="this.style.textDecorationUnderline=true;">
Click this if you think it's important.
</P>

Syntax

textDecorationUnderline: VARIANT_TRUE | VARIANT_FALSE

Requirements

{

See also

Related pages

Attributions