CSS Interview Questions and Answers
Question: What is cascade?Answer: Cascade is a method of defining the weight (importance) of individual styling rules thus allowing conflicting rules to be sorted out should such rules apply to the same selector.Declarations with increased weight take precedence over declaration with normal weight: P {color: white ! important} /* increased weight */ P (color: black} /* normal weight */ |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is CSS?
- What are Cascading Style Sheets?
- As a reader, how can I make my browser recognize my own style sheet?
- How do I combine multiple sheets into one?
- What are Style Sheets?