Question
Option 4 : The inline style / इनलाइन शैली
Detailed Solution
सही उत्तर The inline style / इनलाइन शैली है।
Question:
A class selector, an ID selector and an inline style attribute set conflicting colours on the same element. Which declaration wins? / एक क्लास चयनकर्ता, एक ID चयनकर्ता और एक इनलाइन शैली विशेषता एक ही तत्व पर परस्पर विरोधी रंग तय करते हैं। कौन-सी घोषणा जीतेगी?
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 चयनकर्ताओं से ऊपर होती हैं, जो बदले में क्लास चयनकर्ताओं और तत्व चयनकर्ताओं से ऊपर होते हैं। केवल इम्पॉर्टेंट चिह्नित घोषणा या समान विशिष्टता का बाद का नियम इसे हरा सकता है।