How could I use hover pseudo class in inline CSS?
I used inline CSS for an anchor tag styling but I want to give it a hover effect without using class. Is it possible? if yes how can I do so?
1 Answer
4 years ago by Android tech
Yes, it is possible to use an inline hover class using onmouseover
and onmouseout
props.
<a href="https://onecompiler.com"
onmouseover="this.style.color='cyan'"
onmouseout ="this.style.color='orange'">
click here
</a>
On hover, it will show cyan color
4 years ago by Divya