In: Computer Science
What does it mean that the style sheets are cascading? What is the order of priority of CSS? List 5 things you can do with CSS, which cannot be done easily in HTML?
The cascading of the style sheet means that many CSS styles can be used in a single HTML document where the styles can fall or they can cascade from one style sheet to another and thus enable the multiple styles sheets which can be used in one HTML document.
The order of priority in CSS is that when there are similar selectors in CSS the last one which is defined will take the higher priority. Other than that, the more specific the selector is then it will have higher priority precedence. Thus the more specifically the CSS selector is used in targeting the HTML element it will have a higher priority.
The things which we can easily do with CSS but not easily with
HTML are:
Having transparent backgrounds.
Using graphic rollovers without using Javascript.
Having and using the contextual layout.
Having the rounded corners in websites.
Having effects of Drop shadows in website designs.