+ 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?

14th Aug 2018, 5:11 PM
Helen
Helen - avatar
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/
14th Aug 2018, 9:03 PM
Janning⭐
Janning⭐ - avatar