The :not()
CSS pseudo-class selector matches elements that are not specified in the argument.
e.g. h1:not(.page-title) {...}
Styles all h1
elements except for the elements with the class .page-title
Specificity note: The :not()
pseudo-class does not add to the specificity of the element in its argument, the specificity of the :not()
pseudo-class is that of the element in its argument.