What does specificity mean?
In web development, specificity means the rule CSS uses to decide which style wins when several rules target the same element: ID selectors beat class selectors, which beat element selectors.
Web Development vocabulary · CSS and Layout
In Turkish: seçici önceliği, özgüllük
Also used in: Software Engineering
Type at least 2 characters to search all fields.
How it is used
Comes up whenever 'my CSS isn't working'. Developers talk about high or low specificity, 'specificity wars' and overriding with !important, which is usually seen as a last resort. Inline styles beat rules in stylesheets.
Example sentences
Your rule doesn't apply because the theme's selector has higher specificity.
Keep specificity low so components are easy to override.
Common collocations
- high specificity
- specificity war
- increase specificity
- override with !important
Related terms
More terms: CSS and Layout
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
