CSS Specificity

Last Updated: March 22, 2022

Set of rules used by the browser to determine which of the styles will be applied to the element

Hierarchy of CSS Specificity

  • Inline styles
  • ID selectors
  • Classes, Attributes, and Pseudo Classes
Test