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
- :link: Unvisited link.
- :visited: Visited link.
- :hover: Link on hover.
- :active: Link when clicked.
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.