Complete CSS Selector Reference
Set a background color on all div elements that have a class attribute value containing "test":
The [attribute*=value] selector matches every element whose attribute value containing a specified value.
![]()
The [attribute*=value] selector is supported in all major browsers.
Note: For this selector to work in IE8 and earlier, a <!DOCTYPE> must be declared.
Set a background color on all elements that have a class attribute value containing "test":
Complete CSS Selector Reference
Your message has been sent to W3Schools.