Sorry, tag value is not into a HTML tag, I don’t thing it’s possible with CSS.
These values should be in a tag (and ideally in the object’s parent), but that doesn’t seem relevant enough to me.
Another option would be CSS by object:
With that, you could have CSS adapted to each tag (you would still have to select it unless you use a template by your