I just found this:
Note: a:hover MUST come after a:link and a:visited in the CSS
definition in order to be effective!!Note: a:active MUST come after a:hover in the CSS definition in order
to be effective!!Note: Pseudo-class names are not case-sensitive.
Does this mean that this is INCORRECT?
a:link, a:visited, a:active {
color: #006699;
text-decoration: none;
}
a:hover {
color: #2089CC;
text-decoration: underline;
}
Sadly the source is: http://www.w3schools.com/css/css_pseudo_classes.asp
If you don’t know why the ‘sadly’, please visit http://w3fools.com
Whenever in doubt go to the specs. And here’s an excerpt from the specs.
What you have is correct
That’s why this works.
This below would be incorrect.
That’s why this doesn’t work.