Search code examples
csscss-selectors

Is there a CSS selector for any attribute with a specific value?


Is there a CSS selector that can target a specific attribute value regardless of its attribute? I am looking for something like [*="value"] (using a wildcard) or {value} (a direct value selector).


Solution

  • The simple answer is NO. We have to use any of the Basic Selectors or attribute selector.

    Here is the list of all the CSS selectors.

    https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors

    You cannot find any of the value selector :)