HTML & CSS
What is <b ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
What is
the difference
between
pseudo-elements
:after
and
::after?
Cross-browser compatibility
CSS validity
Different action scopes
There is a possibility to use more than one element (.el:after::after)
There is no difference
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.
pseudo
browser
element
html
css3
double
single
css2
compatibility
cross
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
Does CSS3 allow the simultaneous addition of two background images...
How to change the color of a link to blue when the cursor moves over i...
Sometimes, when you enter the page, the button already lights up by de...
Which rules of media queries support CSS3 for variation of pages f...
Select the correct <form> attribute which specifies that the browse...
H
TML & CSS
Quiz
Login to learn HTML & CSS
or
Read more about
HTML & CSS Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
HTML & CSS quizzes
How to make a shadow for text in gray?...
Which of the following is true about the pseudo-class ...
What is the font-variant property for?...
Which color will word "text" has? <style> p{ ...
What is the property clear: both?...
How to set the space with a width of 5px inside the element...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment