- [Instructor] Consider this piece of HTML. … It's very, very similar to what you just saw … in the HTML family tree discussion. … Now, what I'd like to do, … is I'd like to style the link in the paragraph … without styling the link that's in the list. … Sure, the easiest thing to do here … would be to drop in a class, … and then style the class, … but before long, classes would take over our document. … Also, on occasion, you don't have access … to the HTML to change it. … That can be true with parts of content management systems … like WordPress or Drupal. … If that's the case, … how can I style the link in the paragraph … without affecting the link in the list? … So, typically the way we'd style a link is simply say, a, … and then we'd say something like color: red, … but that of course is going to style both of our links, … and turn them both red. … So, how do I get just the one in the paragraph? … Well, a descendant selector … is a very simple way of doing this. … Remember that a descendant is simply indicates …

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.