web-feature: attr() (content only)

baseline logo Widely available

The attr() CSS function, in content property declarations, sets a ::before or ::after pseudo-element’s content to the value of the specified HTML attribute.