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] selector is used to select elements with the specified attribute.

[attribute] {
    css declarations;
a[target] {
   color: #3366ff;
   background: #ffff99;

Click the button below to experiment with this selector.

Give it a Try!

2.0Firefox 7.0Explorer 4.0Chrome 3.1Safari 9.6Opera