Link and visited states in CSS
Often the states :link and :visited are combined together using a comma:
a:link, a:visited {
color: red;
}
a:hover {
text-decoration: none;
}
a:active {
color: blue;
}
<a href="#">link</a>
:
In this case, you don’t have to specify them at all:
a {
color: red;
}
a:hover {
text-decoration: none;
}
a:active {
color: blue;
}
<a href="#">link</a>
: