Web features explorer

attr()

Limited availability
Tags: css Groups: CSS

The attr() CSS function, in the context of any property, returns the value of an attribute of an HTML element, with the option to return it as a specific type or unit. You can set a default value for missing or invalid attributes.

Learning resources on MDN

Browser support (view on caniuse.com)