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.

ˌspesɪˈfɪsətinounCommon term

Web Development vocabulary · CSS and Layout

In Turkish: seçici önceliği, özgüllük

Also used in: Software Engineering

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

  1. Your rule doesn't apply because the theme's selector has higher specificity.

  2. Keep specificity low so components are easy to override.

Common collocations

  • high specificity
  • specificity war
  • increase specificity
  • override with !important

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: