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 ::after
Trivia & Notes
The :not()
selector is chainable with more :not()
selectors. For example, the following will match all article
s except the one with an ID #featured
, and then will filter out the articles with a class name .tutorial
: