Skip to content

CSS Selectors

Attribute value contains

About

The [attribute*=value] selector matches all elements that have the specified attribute and the attribute value contains the specified substring.

Matching attribute

The example matches all hyperlinks with the href attribute containing the word google. The third hyperlink does not have google in its href attribute, so it is not matched.

  • Change the selector match links with an @ in the href attribute instead