Anchor Pseudoclasses

Visit W3Schools for a good example
(this is dynamic so you really want to try the "Try it yourself")

The anchor tag is different than most tags-- its appearance changes with time from the basic blue as people click it, hover their mouse over it, and while the page loads (while it's active). This necessitates the use of CSS pseudoclasses. An anchor's apparent "class" will change depending on the state of the mouse (hence the pseudo (false) prefix). Pseudoclasses are useful/neat but they can get complicated so we show you this one important one. You can use this to apply, or reverse, most styles that would apply to an inline style that are effecting the anchor elements.

Mnemonics

The order of the pseudoclasses in the stylesheet matters, and should be link before visited before hover before active. Hear are two mnemonics to help:

Back to Knowledge Dump