I’m trying to find out the difference between using one colon “:” and two “::” I see both of them are working with pseudo class. I have tried this with before pseudo class for example and when I did both ways it worked fine.
Is there any difference between two?
Initially there was no difference! But this notation was introduced in CSS3 to distinguish between pseudo-elements and pseudo-classes:
the according section in the spec