Forum Moderators: not2easy
:link
Applies to unvisited links
:visited
Applies to visited links
:active
Applies to elements that are being activated (BUTTON, INPUT, A, etc.)
:hover
Applies to elements that are being hovered over.
:focus
Applies to elements that have the focus
LVFHA : :link :visited :focus :hover :active : when it is desirable for focus to display hover behaviour.
LVHFA : :link :visited :hover :focus :active : when it is not desirable for focus to display hover behaviour.
Less common but what I have been doing (thanks to David Baron and Bill Mason) for several years now:
:link:focus, :visited:focus { ... }
:link { ... }
:visited { ... }
:link:hover, :visited:hover { ... }
:link:active, :visited:active { ... }
Reasons for being somewhat different:
* it degrades well for less compliant browsers.
* it allows focus to cascade properly for accessibility purposes.
* note: by removing 'a', i.e. a:link dropped for :link, it eliminates named anchor concerns.