Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Basics (2014) Fundamental Concepts Fundamental Concepts Review

Oscar Mauricio Lancheros Murillo
Oscar Mauricio Lancheros Murillo
3,608 Points

What are the three main steps the CSS cascade follows to determine which properties get assigned to an element?

Any help please?

3 Answers

Melissa Eaton
Melissa Eaton
8,296 Points

I believe the answer is: Inline style, internal style sheet, and external style sheet. Here's a link to more info: w3schools

This is a direct quote from that site:

Cascading order

What style will be used when there is more than one style specified for an HTML element? Generally speaking we can say that all the styles will "cascade" into a new "virtual" style sheet by the following rules, where number three has the highest priority:

  1. Browser default

  2. External and internal style sheets (in the head section)

  3. Inline style (inside an HTML element)"

Hi Oscar,

The three main steps that the CSS cascade follows to determine which properties get assigned to an element are as follows: importance, specificity, and the source order.

Hope that helps!

thanks... its work...