i wrote a simple html code with <a> tag. the link should turn to yellow when it is active. you can see my css code below for this. I know that a:link:hover should come first then a:link:active, but i want to know why i don't get the yellow color when i write a:link:active first and then a:link:hover
a:link:active{
color:rgb(238, 255, 0);
}
a:link:hover{
color:green;
}
<!DOCTYPE html>
<head>
<title>CSS</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<a style="font-size: 40px;" href="https://www.stackoverflow.com">Link</a>
</body>
</html>