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 347 views
347 views asked Dec 8, 2018 by avibootz
1 answer 228 views
228 views asked Jul 14, 2016 by avibootz
1 answer 319 views
1 answer 338 views
338 views asked May 22, 2021 by avibootz
1 answer 316 views
1 answer 301 views
...