html css it is not possible to have inline styles for different aspects of an element like hover, and visited

You cannot specify css styles for different aspects of an HTML element. e.g. I wanted to do something like this. But you CAN NOT do this. Unfortunately the only solution is to write a custom css class and use it. Like this: Then use the class in your link —————— References: W3 Schools Stack Overflow