:not - CSS pseudo selector in CSS
Milap Patel
Technical Manager | Node.js | React | JavaScript | AWS Certified Cloud Practitioner | PHP | WordPress | Front-end | MongoDB | MySQL
The :not() property in CSS is a negation pseudo class and accepts a simple selector or a selector list as an argument.
It matches an element that is not represented by the argument.
The :not() pseudo class has been updated in the CSS Selectors Level 4 specification to allow an argument list. In CSS Selectors Level 3, it was only capable of accepting a single simple selector.