… This is useful for writing large selectors in a more compact form. Similar to the jQuery hasClass method, there exists a native Javascript method that tells whether the DOM element contains the specified CSS class or not. The :not() CSS pseudo-class represents elements that do not match a list of selectors. Multiple classes can be applied to a single element in HTML and they can be styled using CSS. In this article, we will stick to only two classes. BindableAttribute.