Cascading Order
2.
Sort by specificity of selector: more specific selectors override more general ones. To rate a selector's specificity, count and combine (see the CSS1 spec) these values:
number of ID attributes
number of CLASS attributes
number of tag names