ExampleSet a background color for all elements that are not a p element:
Try it yourself » |
The :not(selector) selector matches every element that is NOT the specified element/selector.
The :not selector is not supported in any of the major browsers.