I'm just wondering to know that about cascading. Is the css called cascading because this stores in cache?
What is the reason for css to say or name it cascading?
I'm just wondering to know that about cascading. Is the css called cascading because this stores in cache?
What is the reason for css to say or name it cascading?
Cascading is when multiple items is row follow each other's in order
Have you ever heard about the Domino's cascading effect, in which when a piece fall it will cause the next piece fall till the end.
Css is named cascading because the effect is cascading according to where is your style
There are 3 locations where the style is located
So the styling is cascading in following order:
The html element will search for inline style and apply it, if there is no inline style then it will CASCADE to internal style and apply it, and if there is no internal style then it Will CASCADE to the external style and apply it
Got it?