JSFiddle - React, Tailwind, and code Playground
HTML
<div id="checkear">
<a href="https://www.google.cl/">Chile</a>
<a href="https://www.google.com/">Usa</a>
<a href="https://www.google.es/">España</a>
<a href="https://www.google.br/">Brasil</a>
</div>
CSS
a{ color: #ff0000; }
a:hisited{ color: #0000ff; }
JavaScript
$('#checkear').find('a').each(function(){
alert($(this).css('color'));
});