Relationship between active and focused states [duplicate]
问题 This question already has answers here : What is the difference between :focus and :active? (7 answers) Closed last year . Currently I'm trying to understand how :active and :focus pseudo-classes related with each other. Here is my example: <a href="http://google.com" target="_blank">Google</a> <style> a:link { color: rgb(0, 138, 206); } /* Blue */ a:visited { color: rgb(180, 14, 180); } /* Violet */ a:active { color: yellow; } a:focus { color: green; } </style> If you click on the link, you