In a simple and short way, one should keep in mind below 2the two things below:
- Inline CSS has a higher priority than embedded and external CSS.
- So final Order is: Value defined as Important > Inline >id> id nesting > id > class nesting > class > tag nesting > tag