Summary

Get an overview of what we have covered so far in this chapter.

In this chapter, we started with specificity, from the most commonly used CSS to complex selectors. In the end, we covered pseudo-classes as well. Let's review what we've done:

  • CSS specificity is a way for the browser to decide which styles to apply when there is more than a single CSS declaration for the same element(s) on the page.

  • There are different CSS selectors with different functionalities.

  • CSS selectors are used for selecting the HTML elements we want to style. To better understand how the browser gives weight to each selector, we can assign a weight to each one.

Get hands-on with 1400+ tech skills courses.