Attribute selector

The attribute selector ([attr]) targets elements with this specific attribute.

Estimated support About

52.54% + 40.19% = 92.73%

Based on EmailClientMarketShare.com.

Notes

This page reflects support for different syntaxes: [attr], [attr="value"], [attr~="value"], [attr|="value"], [attr^="value"], [attr$="value"], [attr*="value"].

  • 1

    Partial. Can not be used with a class selector (.test[class]). Must be used solo ([class]) or with an element selector (td[class]).

  • 2

    Partial. Only supports [attr], [attr=value], [attr~=value], [attr|=value] syntaxes.

  • 3

    Buggy. A class="test" in the HTML is prefixed class="x_test", but an attribute selector stays unprefixed [class="test"].

  • 4

    Partial. Only supports [attr=value] syntax.

  • 5

    Partial. Only supports [attr~=value] syntax.

  • 6

    Partial. Doesn’t work with Non Gmail Accounts.

Resources

Know something we don't?

Is any of the above data outdated? Or do you want to add a new email client to the list? Heads on to GitHub and edit the data file!

Not comfortable with GitHub? Send us an email or get in touch on Twitter.

Test it yourself

This feature was last tested on December 15, 2020.

If you want to test this feature in the same conditions as we did, you can get our test code and run a test by yourself. Make sure to follow our testing recommendations first.