The attr() CSS function is used to retrieve the value of an attribute of the selected element and use it in the stylesheet. It can also be used on pseudo-elements, in which case the value of the attribute on the pseudo-element's originating element is returned....Skip to search Skip to select language Article Actions English (US)...(US) Remember language Deutsch Español Français 日本語 Português...