What is the difference between pseudo-elements :after and ::after?
Explanation
In CSS2, they are denoted by a single colon (":").
In CSS3, pseudo-elements began to be denoted by two colons("::") for making syntax different from pseudo-classes (":").
Browsers, as a rule, understand both syntaxes.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
HTML & CSS quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes