In terms of specificity, which type of selector has the highest priority?

  • Class selectors
  • Element selectors
  • ID selectors
  • Universal selectors
In terms of specificity, ID selectors have the highest priority. They are more specific than class selectors, element selectors, and universal selectors, and styles defined using ID selectors will override styles defined with lower-specificity selectors.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *