CSS text-decoration-color property

Description

CSS text-decoration-style defines the color of text decoration line.

Syntax

text-emphasis-color : currentColor | color-name | rgb value | hexadecimal value

Property values

currentColorDefault

currentColor represents the same color as of text.

text-decoration-color: currentColor;

color-name

Any color name can be used as the value. red value represents red color.

text-decoration-color: red;

rgb value

It is an rgb value of red color.

text-decoration-color: rgb(0,255,0);

hexadecimal value

It is an hexadecimal notation of blue color.

text-decoration-color: #0000ff;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
arrow
We are learning text decoration color
×

Ctrl+D