Skip to content

Instantly share code, notes, and snippets.

@scriptonian
Last active October 8, 2016 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scriptonian/fa48c4450103102b48684a31b20fc114 to your computer and use it in GitHub Desktop.
Save scriptonian/fa48c4450103102b48684a31b20fc114 to your computer and use it in GitHub Desktop.
att is an attribute within an element. href, type, data-*, src, lang etc!
E:[att] : element with an attribute selector
E:[att=val] : element with an atttribute selector equal to val
E:[att~=val] : element E whose attribute selector att, has within its value the space separated full word val
E:[att|=val] : element E whose attribute selector att, has a value val or begins with val
E:[att^=val] : element with attribute selector that starts with val
E:[att$=val] : element with attribute selector that ends with val
E:[att*=val] : element with attribute selector that matches anything like val
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment