Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 4 : The inline style / इनलाइन शैली

Advertisement

Detailed Solution

सही उत्तर The inline style / इनलाइन शैली है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

A class selector, an ID selector and an inline style attribute set conflicting colours on the same element. Which declaration wins? / एक क्लास चयनकर्ता, एक ID चयनकर्ता और एक इनलाइन शैली विशेषता एक ही तत्व पर परस्पर विरोधी रंग तय करते हैं। कौन-सी घोषणा जीतेगी?

1.
The class selector / क्लास चयनकर्ता
2.
The element selector / तत्व चयनकर्ता
3.
The ID selector / ID चयनकर्ता
4.
The inline style / इनलाइन शैली

Correct Answer: The inline style / इनलाइन शैली

Specificity ranks inline styles above ID selectors, which in turn outrank class selectors and element selectors. Only a declaration marked important or a later rule of equal specificity could override it. / विशिष्टता में इनलाइन शैलियाँ ID चयनकर्ताओं से ऊपर होती हैं, जो बदले में क्लास चयनकर्ताओं और तत्व चयनकर्ताओं से ऊपर होते हैं। केवल इम्पॉर्टेंट चिह्नित घोषणा या समान विशिष्टता का बाद का नियम इसे हरा सकता है।

Downloaded from PrepSnap (prepsnap.in)