Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style> 
div[class*="test"] {
  background: salmon;
}
</style>
</head>
<body>
<h1>Demo of the [attribute*=value] selector</h1>
<p>Set a background color on all div elements that have a class attribute value that contains "test":</p>
<div class="testing">The first div element.</div>
<div class="second_test">The second div element.</div>
<div class="test">The third div element.</div>
<div class="test_ex">The fourth div element.</div>
<div class="fifth">The fifth div element.</div>
<p class="test">This is a paragraph.</p>
<p class="test_ex">This is a paragraph.</p>
</body>
</html>