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.
compatibility
browser
single
pseudo
html
element
css2
css3
double
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 to one element?
How to change the color of a link to blue when the cursor moves over it?
Sometimes, when you enter the page, the button already lights up by default. What attribute is applied to interface elements (such as checkboxes and radio buttons) when they are in the "on" position?
Which rules of media queries support CSS3 for variation of pages for different types of media? Select all the correct options.
Select the correct <form> attribute which specifies that the browser should not validate the form. <!DOCTYPE html> <html> <body> <form action="/action_page.php" novalidate> E-mail: <input type="email" name="user_email"> <input type="submit"> </form> <p> <strong>Note:</strong> The novalidate attribute defines that the browser will not validate data which is entered into the form. The form tag is not supported in Internet Explorer 9 and earlier versions, or in Safari. </p> </body> </html>
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 :visited?
What is the font-variant property for?
Which color will word "text" has? <style> p{ color: green !important; } #p{ color: blue; } </style> <p id="p" style="color: red">text</>
What is the property clear: both?
How to set the space with a width of 5px inside the element using CSS?
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment