- [Instructor] Pseudo-elements look like … pseudo-classes but they're much lower … in specificity, more like an HTML element selector. … They change a part of a selected element … but not the whole element as most selectors do. … Some pseudo-elements are written in two forms … of syntax and specifically the four I cover here … are affected by this. … There are pseudo-elements that were introduced … in CSS two where they were written with a single … colon so they look like pseudo-classes. … But in CSS three they changed the pseudo-element … syntax to two colons so you don't have to remember … whether a pseudo-element supports one or two colons. … Just be safe and write 'em all with two colons … going forward. … There are several pseudo-elements available … to you but I'm going to focus on the four … with the best support and that are probably the most used. … And so the first one I want to talk about … is the first letter construct. … And so first letter will take the first letter, … say of this paragraph, and style it in some special way. …

Resume Transcript Auto-Scroll

Author

Released

5/2/2019

Discover how to effectively leverage the power of selectors to select the elements you want to style without adding classes, changing HTML, or getting overly specific with your selectors. In this course, instructor Jen Kramer demonstrates how to pinpoint specific parts (and groups of parts) in an HTML document using the powerful declarative syntax of CSS selectors. Jen covers combinator selectors, attribute selectors, pseudo-class and pseudo-element selectors, and the universal selector. She also offers tips for determining which selectors might not be supported by your browser choices and shares best practices for mixing selectors in your document. And because this is an easily-tested syntax, Jen includes questions at the end of most videos to reinforce your understanding of each concept.