COMPUTER FUNDAMENTALS

COMPUTER NETWORKS AND COMMUNICATIONS

INTERNET AND WEB TECHNOLOGIES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
When CSS rules conflict
A
rules farther down on the list override rules that are higher on the list.
B
decisions are made alphabetically by rule name
C
the rule with the lowest specificity is applied
D
rules higher on the list override rules that are lower on the list
Explanation: 

Detailed explanation-1: -CSS specificity rule 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-2: -Cascading Order Priority 1: Inline styles. Priority 2: External and internal style sheets. Priority 3: Browser default. If different styles are defined on the same priority level, the last one has the highest priority.

There is 1 question to complete.