li bing zhaoon Stack Overflow • Recommends
On “Understanding CSS selector priority / specificity”
Element
Class selectors
ID Selectors
Inline styles
!important
In order, 1 is the lowest specificity and 5 is the highest.
link to this video will shown details to demo it.