clock  Mon - Sun 8.00 AM - 8.00 PM
mail  edu@teknowize.com
fb
instagram
play store
pinterest

More

CSS Text Decoration Color

Imperial Advance Hero Image

CSS Text Decoration Color

It is use to set the text decoration color.

 

Syntax -

text-decoration-color : value ;

 

For example -

<!DOCTYPE html>
<html>

<head>
    <title>CSS Text Decoration Color</title>
    <style>
        h1 {
            text-decoration: underline;
            text-decoration-color: red;
        }

        h2 {
            text-decoration: line-through;
            text-decoration-color: green;
        }

        h3 {
            text-decoration: overline;
            text-decoration-color: blue;
        }
    </style>
</head>

<body>

    <h1>Welcome to teknowize - underline</h1>
    <h2>Welcome to teknowize - line-through</h2>
    <h3>Welcome to teknowize - overline</h3>

</body>

</html>

 

Output

Text Decoration

CSS