Which among the following is/NOT true with reference to Id selector?
Which among the following is/NOT true with reference to Id selector?
आईडी सेलेक्टर के सम्बन्ध में निम्नलिखित में से कौन सा सत्य नहीं है?
A. The id of an element should be unique within a page, so the id selector is used to select one unique element.
किसी एलिमेंट की आईडी एक पेज के भीतर यूनिक होनी चाहिए। एक यूनिक एलिमेंट का चयन करने के लिए किया जाता है।
B. The id selector uses the id attribute of an HTML element to select a specific element. आईडी सेलेक्टर एक विशिष्ट एलिमेंट का चयन करने के लिए एक HTML एलिमेंट की आईडी एट्रीब्यूट का उपयोग करता है।
Detailed Solution & Logic
Neither A nor B/न तो A और न ही B
आईडी सेलेक्टर एक विशिष्ट एलिमेंट को सेलेक्ट करने के लिए एक HTML एलिमेंट की आईडी एट्रीब्यूट का उपयोग करता है। एक एलीमेंट की आईडी एक पेज के भीतर यूनिक है, इसीलिए आईडी सेलेक्टर का उपयोग एक यूनिक एलिमेंट का चयन करने के लिए किया जाता है। किसी विशिष्ट आईडी वाले एलिमेंट का चयन करने के लिए एक हैश (#) वर्ण लिखें, उसके बाद एलिमेंट की आईडी लिखें। आईडी नेम किसी संख्या से स्टार्ट नहीं हो सकता है।
Similar Practice Questions
Variables in JavaScript cannot be declared using:
Variables in JavaScript cannot be declared using: जावास्क्रिप्ट में वेरिएबल को का प्रयोग करके घोषित...
Are the negative values allowed in padding property?
Are the negative values allowed in padding property? क्या पैडिंग प्रॉपर्टी में निगेटिव वैल्यूज की...
Which of the following is true?
Which of the following is true? निम्न में से कौन सा सही है?
A website address is a unique name that identifies a specific ______ on the web.
A website address is a unique name that identifies a specific ______ on the web.वेबसाइट...
What is the full form of ASP? / ASP का पूर्ण रूप…
What is the full form of ASP? ASP का पूर्ण रूप क्या है?
A new Incognito window in Google chrome can be opened with the.
A new Incognito window in Google chrome can be opened with the. गूगल क्रोम में...
Id selector is donated by the:
Id selector is donated by the: _____के द्वारा आईडी सिलेक्टर डोनेट किया जाता है।