you have to find #no of id =A ,#no of class =B and #no of tag =c in the selector
ABC with higher value wins.
.wrapper .title p {
//some other rules
}
A=0 B=2 C=1 =021
\#foo {
// some more rules
}
A=1 = 100
.bar .head div li{
// some more rules
}
A=0 B=2 C=2 =022