CSS: multiple attribute selector

By Xah Lee. Date: .

Multiple Attribute Selector

The attribute selector can be combined. For example:

p[aaa="1"][bbb="2"] {color:red;}

matches

<p aaa="1" bbb="2">something</p>

CSS, Selectors