![*](/upload/html_folder/Cascading_Order_and_CSS_Grouping_Class-10/Cascading_Order_and_CSS_Grouping_Class-10_files/image001.jpg)
Cascading Order
While using multiple style sheets you need to arrange these sheets in a well define order. The following characteristics will determine the outcome of CSS:
![*](/upload/html_folder/Cascading_Order_and_CSS_Grouping_Class-10/Cascading_Order_and_CSS_Grouping_Class-10_files/image003.jpg)
! important
A style that is designated as important will win out over contradictory styles of otherwise equal weight.
![*](/upload/html_folder/Cascading_Order_and_CSS_Grouping_Class-10/Cascading_Order_and_CSS_Grouping_Class-10_files/image003.jpg)
Selector Rules
It is a counting game to calculate the specificity of a selector.
- Counting the number of HTML tag names in the selector.
- Counting the number of ID attributes in the selector.
- Counting the number of CLASS attributes in the selector.
![*](/upload/html_folder/Cascading_Order_and_CSS_Grouping_Class-10/Cascading_Order_and_CSS_Grouping_Class-10_files/image003.jpg)
Order of Specification
If two rules are the equal weight, the last specified rule wins.
![*](/upload/html_folder/Cascading_Order_and_CSS_Grouping_Class-10/Cascading_Order_and_CSS_Grouping_Class-10_files/image001.jpg)
CSS Grouping
CSS grouping allows you to minimize the code. For this
more...