CSS Live Demo: text-decoration Click the demo button below!
selector {
    text-decoration: <'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'>
    /*  
        These values correspond to the properties:
        text-decoration-line,
        text-decoration-color,
        text-decoration-style,
        and text-decoration-thickness.
        
        The order of the values does not matter.
        Any omitted values will fall back to their initial values.
    */
}
text-decoration: underline;
text-decoration: overline blue;
text-decoration: none;

/* Global values */
text-decoration: inherit;
text-decoration: initial;
text-decoration: unset;
text-decoration: revert;
text-decoration: revert-layer;
<p>This is a text decoration.</p>
p {
    text-decoration: underline red;
}
/*
    The omitted text-decoration-style defaults to its initial value of solid.
    The omitted text-decoration-thickness defaults to its initial value of auto.
*/
Rendered Output
<p>This is a text decoration</p>
p {
    text-decoration: underline red 5px;
}
/*
    The omitted text-decoration-style defaults to its initial value of solid.
*/
p {
    text-decoration: underline red;
    text-decoration-thickness: 5px;
}
/*
    The omitted text-decoration-style defaults to its initial value of solid.
*/
Rendered Output
<p>This is a text decoration.</p>
p {
    text-decoration: red;
}
/*
    The omitted text-decoration-line defaults to its initial value of none — this is important.
    The omitted text-decoration-style defaults to its initial value of solid.
    The omitted text-decoration-thickness defaults to its initial value of auto.
*/
Rendered Output

Last updated: 2025-07-01

See more details on caniuse.com.