Web features explorer

attr() (content only)

Widely available
Tags: css Groups: CSS

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. To learn more, see attr() at MDN.

Compatibility