How To Remember The Order of Selectors: LOVE and HATE

Chris Coyier //

I read a comment the other day over on CSS Drive from someone named Slackerbabe that I thought was worth repeating.

Heres a cool way to remember the order of the four selectors, "LVHA (link visited hover active)",....

Just think 'LOVE' (LV) and 'HATE' (HA)....

The selectors she is referencing is for anchor elements:

  • a:link
  • a:visited
  • a:hover
  • a:active