css how to remember psudoelements vs pesudo classes

Solutions on MaxInterview for css how to remember psudoelements vs pesudo classes by the best coders in the world

showing results for - "css how to remember psudoelements vs pesudo classes"
Ella
19 Sep 2016
1/*
2Pseudo classes:
3• Selects actual elements (e.g. p or div) 
4• Based on some condition that is probably not part of the HTML DOM
5	• e.g if the user is hovering over it (:hover)
6• But sometimes it is stuff that would just be hard to calculate
7	• e.g. the fist child 
8
9Pseudo elements 
10• Select elements that are *not* part of the DOM
11• There is no corrisponding tag to be found
12	• e.g. p::first-line creates an imaginary tag
13	that has everything in the first line in it
14*/
15
16