Home >> Tutorials/FAQs >> CSS Tutorials >> Index

CSS Tutorials - CSS Cascading Order Rules

By: FYICenter.com

(Continued from previous topic...)

What Are the CSS Cascading Order Rules?

The most important cascading order rules are:

  • A specified CSS definition wins over a default CSS definition in the browser.
  • A CSS definition with a contextual selector wins over a CSS definition with a tag selector.
  • A CSS definition with a class selector wins over a CSS definition with a contextual selector.
  • A CSS definition with an id selector wins over a CSS definition with a class selector.
  • A CSS definition included in the HTML tag instance wins over other CSS definitions.
  • A later CSS definition wins over an earlier CSS definition.

Note that cascading order rules are applied in the order as listed above.

(Continued on next topic...)

  1. What Is CSS (Cascading Style Sheets)?
  2. What Is the Basic Unit of CSS?
  3. How Many Ways to Attach CSS to HTML Documents?
  4. How To Include CSS Inside an HTML Tag?
  5. How To Include CSS Inside the HEAD Tag?
  6. How To Store CSS Definitions in External Files?
  7. How Many Ways to Select HTML Tag Instances?
  8. What Is a Class Selector?
  9. What Is an ID Selector?
  10. What Is a Contextual Selector?
  11. What Is a Group Selector?
  12. What Is a Mixed Selector?
  13. What Are the Pseudo Classes on <A> Tags?
  14. How To Group CSS Definitions Together?
  15. What Is Style Property Inheritance?
  16. What Is CSS Cascading?
  17. What Are the CSS Cascading Order Rules?
  18. How To Remove the Top White Space of Your Web Page?
  19. How To Set Different Text Fonts Inside Tables?
  20. How To Use Class Selectors to Differentiate Tag Instances?
  21. How To Use IDs to Override Classes?

Selected Developer Jobs:

More...