JSFiddle - React, Tailwind, and code Playground
HTML
<a href="//google.com">has border</a>
<a class="no_border" href="//domain.com/pic.png"><img> no border</a>
CSS
a {border: thin solid black}
a.no_border{
border: none;
}
/* both rules combined into a single statement. */
a:not(.no_border) {
font-size: 2em
}