I am trying to perform inline styling for anchor tags. I know you can do a style in the head but that is not what I am trying to do. I looked online and saw that you can do a simple <a href="#link" style="color: #ff600">Link 1 </a>. However I cannot seem to find an answer to do inline styling for when it is visited.
I am trying to convert these below to inline style.
<style>
    a:link {
     color: red;
    }
    
    a:visited {
      color: blue;
      text-decoration: purple; 
    }
</style>
I have tried the following, but it does not work.
<a style="a:link color: red; a:visited color: blue text-decoration: purple;" href="https://www.google.com">search here</a>
Here is a sample code if it helps to visualize it.
<!DOCTYPE html>
<html>
<head>
<!--  <style>
    a:link {
     color: red;
    }
    
    a:visited {
      color: blue;
      text-decoration: purple; 
    }
  </style>   -->
</head>
<body>
<h1>Hello World!</h1>
<a style="a:link color: red; a:visited color: blue text-decoration: purple;" href="https://www.google.com">search here</a>
</body>
</html>
How can I do this translation into inline styling?
 
    