CSS3 Attribute selectors

Substring matching attribute selectors

[att^=val] - Represents an element with the att attribute whose value begins with the prefix val.

[att$=val] - Represents an element with the att attribute whose value ends with the suffix val.

[att*=val] - Represents an element with the att attribute whose value contains at least one instance of the substring val.

p[title^=te] {background: #999;}
<p title=test>Paragraph have a grey background.</p>

Related Posts

CSS Selectors, CSS3 font face