Skip to content

Commit 23771d0

Browse files
Update files/en-us/web/css/attr/index.md
Co-authored-by: Chris Mills <[email protected]>
1 parent 7b71d6c commit 23771d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/en-us/web/css/attr/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ browser-compat: css.types.attr
1010
> [!NOTE]
1111
> The `attr()` function can be used with any CSS property, but support for properties other than {{CSSxRef("content")}} is experimental.
1212
13-
The **`attr()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) is used to retrieve the value of an attribute of the selected element and use it in the stylesheet, similar to how the {{cssxref("var", "var()")}} function substitutes a custom property value into a function. It can also be used on [pseudo-elements](/en-US/docs/Web/CSS/Pseudo-elements), in which case the value of the attribute on the pseudo-element's originating element is returned.
13+
The **`attr()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) is used to retrieve the value of an attribute of the selected element and use it in a property value, similar to how the {{cssxref("var", "var()")}} function substitutes a custom property value. It can also be used with [pseudo-elements](/en-US/docs/Web/CSS/Pseudo-elements), in which case the attribute's value on the pseudo-element's originating element is returned.
1414

1515
{{EmbedInteractiveExample("pages/tabbed/function-attr.html", "tabbed-shorter")}}
1616

0 commit comments

Comments
 (0)