Skip to content

CSS Selectors

Attribute value ends with


The [attr$=value] selector matches all elements with the specified attribute whose value ends with with a certain value.

Matching attribute

The example matches all hyperlinks with the href attribute ending with .com. The third hyperlink uses a different value for the href attribute, so it is not matched.

  • Change the selector match .io links instead