CSS Links

With the help of CSS Links, you can easily change the color on link, hover, visited and active..

a:link: Default or normal link

a:visited: a link when user visited

a:hover: a link when mouse hover on link

a:active: when user open that link page, link clicked


<!DOCTYPE html>
<html lang=“en”>
<meta charset=“utf-8”>
<style type=“text/css”>
a:link {color: #000000}
a:visited {color: #006600}
a:hover {color: #FFCC00}
a:active {color: #FF00CC}


<h2>Check below Link with on mouse hover, on visited, on active and link give different colors as defined by above style.</h2>
<a href=“#”>Home</a>


/* You can give color, text-decoration, background-color, padding and more. */

Leave a Reply

Notify of