diff --git a/files/en-us/web/css/reference/selectors/universal_selectors/index.md b/files/en-us/web/css/reference/selectors/universal_selectors/index.md index ef4e20883e53b8b..211a49944cd104c 100644 --- a/files/en-us/web/css/reference/selectors/universal_selectors/index.md +++ b/files/en-us/web/css/reference/selectors/universal_selectors/index.md @@ -21,6 +21,12 @@ The universal selector is a special [type selector](/en-US/docs/Web/CSS/Referenc - `*|*` - matches all elements - `|*` - matches all elements without any declared namespace +> [!NOTE] +> The universal selector (`*`) matches **elements only**. +> It does **not** directly match pseudo-elements by itself. +> +> To match all {{cssxref("::before")}} pseudo-elements on a page, for example, you would have to use a selector like `*::before`. This works because the `*` matches all elements, and the `::before` pseudo-element is available on all elements. + ## Syntax ```css