CSS [AttributeName~=AttributeValue] Selector
What is a CSS [AttributeName~=AttributeValue] Selector?
- Some attributes can be specified as a whitespace separated list. This selector specifies an element whose whitespace separated list contains a specific value. In the following example, the color property will be set to red for any <p> element where the word "sample" is one of the values contained within the whitespace separated list. The style is NOT applied to the third <p> element.