attr() CSS function - CSS | MDN
The attr() CSS function is used to retrieve the value of an attribute of the selected element and use it in a property value, similar to how the var() function substitutes a custom property value. It...
developer.mozilla.org