+ 1
Pseudo classes & elements
What’s the difference between pseudo class and pseudo elements? Also, why are they necessary? Can’t we just use classes/id’s to target elements?
1 Odpowiedź
+ 2
Pseudo classes are more like attributes whereas pseudo elements are more like extra elements inserted into the DOM. They are extremely useful.
https://css-tricks.com/pseudo-class-selectors/
https://www.w3schools.com/css/css_pseudo_elements.asp
https://css-tricks.com/pseudo-element-roundup/