HTML & CSS for Beginners Part 16: CSS selectors and Specificity

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerUI11 min

About this video

Kevin Powell explains how CSS selectors can make more specific selections and how specificity decides which rule wins, along with ways to work around the problems specificity can cause. It is aimed at beginners learning HTML and CSS.

What you’ll learn

  • Write more specific CSS selectors
  • Calculate the specificity of a selector
  • Avoid specificity conflicts in stylesheets