<a class="u-textlink" href=“www.link.com" rel="category tag">Sustainability</a>
Is there a way to target only rel attribute with the name “Sustainability”? But only with CSS.
I tried a[rel="category tag”] but then all the rels get CSS and I want to target just the rel with word Sustainability if I target a[href="www.link.com”] then all the links get targeted.
It's not possible to do with CSS. You can either use a workaround in CSS or JS to do it.
I think of all the available options these are the most common: data attributes (especially for utility/component styling), IDs if unique, or just adding an additional class in this case.
There are lots of options. Here are a few examples: