WEB BROWSERS TECHNOLOGY
WHAT IS WEB TECHNOLOGY
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
rules farther down on the list override rules that are higher on the list.
|
|
decisions are made alphabetically by rule name
|
|
the rule with the lowest specificity is applied
|
|
rules higher on the list override rules that are lower on the list
|
Detailed explanation-1: -In CSS, styles sheets cascade by order of importance. If rules in different style sheets conflict with one another, the rule from the most important style sheet wins.
Detailed explanation-2: -1) Inline style: Inline style has highest priority among all. 2) Id Selector: It has second highest priority. 3) Classes, pseudo-classes and attributes: These selectors has lowest priority.
Detailed explanation-3: -Within these three ( Inline, Internal & External ) the priority order is first Inline, then Internal and last priority is given to external styles. This is the biggest advantage as we can override the global style property and define them locally. Let us start learning each of these three types of CSS.
Detailed explanation-4: -If there are two or more CSS rules that point to the same element, the selector with the highest specificity value will “win", and its style declaration will be applied to that HTML element.