links

CSS Links

CSS Links

Introduction to CSS Links

CSS link styling enables you to control the appearance of links in various states: unvisited, visited, hover, and active.

Link States

Example


a:link {
    color: blue;
}
a:visited {
    color: purple;
}
a:hover {
    color: green;
}
a:active {
    color: red;
}
        

Browser Support

Link pseudo-classes are widely supported in browsers.