Six selector groups listed from highest to lowest priority : Selector priority : Style Basics HTML CSS TUTORIALS


HTML CSS TUTORIALS » Style Basics » Selector priority »

 

Six selector groups listed from highest to lowest priority


 

1. group contains rules with !important.  
2. group contains rules embedded in the style attribute. 
3. group contains rules that have one or more ID selectors. 
4. group contains rules that have one or more class, attribute, or pseudo selectors.
5. group contains rules that have one or more element selectors. 
6. group contains rules that have only a universal selector.
 

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Style Basics
» Selector priority