CSS Complex Selectors

When comes to defining selectors in our CSS there are some best practices and standard conventions that we tend to follow. For example, use only classes, which fit nicely in the Goldilocks zone of CSS (element selectors are too general and ID selectors are too specific). But sometimes a project is not always that clean, and sometime we need to rely on the more complex selectors to get the job done.

In this module, we will review different types of selectors including: combinators, attribute selectors, and pseudo classes and see how these can be used to create complex selectors.