How to add visited attribute to html a label?

126 Views Asked by At

I am trying to add visited attribute to html a label, just like below case:

a:visited {
  color: green !important;
}
<a href="javascript:;" onclick="play(0,0);">Some Text</a>

but it's not working.

Could you please help to point out why it's not working?

Thank you!

0

There are 0 best solutions below