2019-11-20
Contains or has selector
No selector is called contains selector or has selector but you can use *
for the same effect.
CSS
div[class*="test"] {
background: #ddd;
}
HTML
<div class="a-test-class">Test class</div>
<div class="another-class">Another class</div>
Sources
Comments