CSS Selectors

CSS

Course details

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.

Learning objectives

  • Targeting classes and IDs
  • Working with group selectors
  • Targeting element attributes
  • Targeting links with pseudo-class selectors
  • Targeting child elements and empty elements
  • Targeting parent, child, and sibling elements
  • Best practices for CSS
  • The impact of CSS selectors on performance
Return to CSS Courses