What is the difference between pseudo-classes and pseudo-elements?
What is the different between div::after {} and div:after {} ? When do we have to use :: over : ? Double colon and single-colon notation is to distinguish between pseudo-classes and pseudo-elements. What is the actual meaning of the above statement? Bas van Dijk From https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Pseudo-classes_and_pseudo-elements Pseudo-class : A CSS pseudo-class is a keyword, preceded by a colon (:), added to the end of selectors to specify you want to style the selected elements, and only when they are in certain state . For example, you might want