Attribute selectors

Using an attribute selector that looks for an attribute value that’s suffixed with a pattern ([attr$=value]) is handy for looking for certain file types in a link’s href attribute.

In this example, we’re using that approach to add an icon for the file type.

Downloads