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! While you're at it, check out some resources Treehouse students have shared here.
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 trialOscar Mauricio Lancheros Murillo
3,608 PointsWhat 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
8,296 PointsI 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:
Browser default
External and internal style sheets (in the head section)
Inline style (inside an HTML element)"
Alex Durrell
11,862 PointsHi 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!
Soumeli Dutta
8,523 Pointsthanks... its work...