How To Remember The Order of Selectors: LOVE and HATE

Avatar of Chris Coyier
Chris Coyier on

Grow sales with Customer Journey Smarts with MailChimp Mailchimp tracking pixel

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