Selectors allow the representation of an element's attributes. When a selector is used as an expression to match against an element, attribute selectors must be considered to match an element if that element has an attribute that matches the attribute represented by the attribute selector. The [attribute^=value] selector matches every element whose attribute value begins with a specified value.

[attribute^=value] {
    css declarations;
}
a[title^="A"] {
   color: #3366ff;
   background: #ffff99;
}

Click the button below to experiment with this selector.

Give it a Try!

3.5Firefox 7.0Explorer 4.0Chrome 3.2Safari 9.6Opera