Explain CSS specificity.

CSS specificity is a rank or score that decides style declaration to be used to an element. ID selectors have high specificity, while universal selector * has low specificity. The four CSS categories that authorize the selector’s specificity level are IDs, inline style, elements/pseudo-elements, and classes and attributes. 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *