COMPUTER NETWORKS AND COMMUNICATIONS
INTERNET AND WEB TECHNOLOGIES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which CSS concept describes how the order and placement of rules in the style sheet affect the application of styles?
|
cascade theory
|
|
inheritance theory
|
|
descendant theory
|
|
specificity theory
|
Explanation:
Detailed explanation-1: -The declaration is that part of the rule that sets forth what the effect will be. In the example above, the selector is h1 and the declaration is “color: green.” Hence, all h1 elements will be affected by the declaration, that is, they will be turned green.
Detailed explanation-2: -The cascading feature of CSS lets these multiple style sheets and style rules interact in the same document.
There is 1 question to complete.