CSS [attribute*=value] Selector

❮ Previous Selectors Next ❯

Example

p[title*="Hello"] {
  background: red;
}

Meaning

The [attribute*=value] selector selects all elements of that have the attribute that contains the given value.

Version: CSS3




Standard Syntax

[attribute*=value] {
  css declarations;
}



Browser Support

The numbers in the table specify the first browser version that fully supports the property.




Status







❮ Previous Selectors Next ❯