July 21st, 2010
“Pseudo-elements create abstractions about the document tree beyond those specified by the document language. For instance, document languages do not offer mechanisms to access the first letter or first line of an element’s content. CSS pseudo-elements allow style sheet designers to refer to this otherwise inaccessible information”
If you develop websites, as I do, you most likely have been using them for years as well. Does this look familiar:
So the state of the link is not itself in the document tree (the html), but we can reference it in our CSS.
So why is it time to explore these very nifty developments in CSS now? Two reasons: