Is it possible to select elements in CSS by their HTML5 data attributes (for example, data-role)?
You can combine multiple selectors and this is so cool knowing that you can select every attribute and attribute based on their value like href based on their values with CSS only..
Attributes selectors allows you play around some extra with id and class attributes
Here is an awesome read on Attribute Selectors
Fiddle
Browser support:
IE6+, Chrome, Firefox & Safari
You can check detail here.