How to set HTML link color, link visited color and link hover color with CSS

1 Answer

0 votes
<!DOCTYPE html>
<head>
    <style>
        a:link {
            color: blue;
            background-color: transparent;
            text-decoration: none;
        }
        a:visited {
            color: purple;
            background-color: transparent;
            text-decoration: none;
        }
        a:hover {
            color: green;
            background-color: transparent;
            text-decoration: underline;
        }
    </style>
</head>
<html>
    <body>

        <p><a href="https://www.seek4info.com">Click To Visit Seek4Info</a></p>

    </body>
</html>

 



answered Dec 8, 2018 by avibootz

Related questions

1 answer 342 views
342 views asked Dec 8, 2018 by avibootz
1 answer 225 views
225 views asked Jul 14, 2016 by avibootz
1 answer 311 views
1 answer 333 views
333 views asked May 22, 2021 by avibootz
1 answer 305 views
1 answer 294 views
...