Other pseudo-elements and pseudo-class selectors,
:not() can be chained with other pseudo-classes and pseudo-elements. For example, the following will add a “New!” word to list items that do not have a
.old class name, using the
You can see a live demo in the Live Demo section below.
The specificity of the
:not() pseudo-class is the specificity of its argument. The
:not() pseudo-class does not add to the selector specificity, unlike other pseudo-classes.