[class*=”te”] {background: yellow;} Selects all elements with a class attribute value that contains “te”:
CSS [attribute~=”value”] Selector
[title~=”flower”] {border: 5px solid yellow;} Selects all elements with a title attribute that contains a space-separated list of words, one of which is “flower”:
CSS [attribute^=”value”] Selector
[class^=”top”] {background: yellow;} Selects all elements with a class attribute value that starts with “top”:
CSS [attribute$=”value”] Selector
[class$=”test”] {background: yellow;} Selects all elements with a class attribute value that ends with “test”:
CSS [attribute|=”value”] Selector
[class|=”top”] {background: yellow;} Select elements with the specified attribute, whose value can be exactly the specified value, or the specified value followed by a hyphen (-).