CSS - Selector In Css
Questions No: 1/30

Which selector applies styles to all <p> elements inside a <div> with the class .content
कौन सा चयनकर्ता .content वर्ग के साथ <div> के अंदर सभी <p> तत्वों पर शैलियाँ लागू करता है

Questions No: 2/30

Which selector selects elements based on a certain state ?
कौन सा चयनकर्ता एक निश्चित अवस्था के आधार पर तत्वों का चयन करता है?

Questions No: 3/30

Which of the following selector selects the elements that are checked?
निम्नलिखित में से कौन सा चयनकर्ता चेक किए गए तत्वों का चयन करता है?

Questions No: 4/30

Which selector targets only <li> elements that are directly under an <ul>?
कौन सा चयनकर्ता केवल <li> तत्वों को लक्षित करता है जो सीधे <ul> के अंतर्गत हैं

Questions No: 5/30

How do you target the last child of a parent element
आप मूल तत्व के अंतिम बच्चे को कैसे लक्षित करते हैं

Questions No: 6/30

Match the CSS Attribute Selector with Its Function


CSS Attribute SelectorFunction
A. [type="text"]1. Selects all elements that have a title attribute
B. [title]2. Selects input fields with the type exactly as "text"
C. [href^="https"]3. Selects all <a> tags where href starts with "https"
D. [class~="btn"]4. Selects elements whose class attribute contains "btn" as a separate word

5. Selects elements where class contains "btn" anywhere in the value

6. Selects elements where href contains "https" anywhere in the URL


Questions No: 7/30

What does the adjacent sibling selector (+) do
निकटवर्ती सहोदर चयनकर्ता (+) क्या करता है

Questions No: 8/30

Match the CSS Selector with Its Description


CSS SelectorDescription
A. #header1. Selects all elements of a specific type
B. .container2. Selects an element with a unique ID
C. p3. Selects all elements with a specific class name
D. *4. Selects all elements on a page

5. Selects only the first paragraph inside a div

6. Selects only links inside a navigation menu


Questions No: 9/30

Which of the following selector select sibling ?
निम्नलिखित में से कौन सा सेलेक्टर सिबलिंग को सेलेक्ट करता है?

Questions No: 10/30

How can you select all elements of a specific class in CSS
आप CSS में किसी विशिष्ट वर्ग के सभी तत्वों का चयन कैसे कर सकते हैं

Questions No: 11/30

How do you style all elements with a specific attribute, regardless of its value
आप सभी तत्वों को एक विशिष्ट विशेषता के साथ कैसे शैलीबद्ध करते हैं, चाहे उसका मूल्य कुछ भी हो

Questions No: 12/30

Which of the following selector select an element if it's the child of its parent ?
निम्न में से कौन सा सेलेक्टर एक एलिमेंट सेलेक्ट करता है यदि उसका चाइल्ड उसके पैरेंट का हो।

Questions No: 13/30

How to apply specific styles to h1 tag only when mouse points to it?
कसी H1 टैग पे माउस ले जाने पे कोई कस प्रोपेरी कैसे लगाएंगे

Questions No: 14/30

Which attribute specifies a unique alphanumeric identifier to be associated with an element?
कौन सा एट्रिब्यूट किसी एलिमेंट से जुड़े यूनिक अल्फ़ान्यूमेरिक पहचानकर्ता को निर्देशित करता है

Questions No: 15/30

Match the CSS User Action Pseudo-Class with Its Effect


CSS Pseudo-ClassEffect
A. :hover1. Styles an element when the mouse leaves it
B. :focus2. Applies a style when an element is clicked or focused
C. :active3. Applies a style when an element is actively being clicked
D. :visited4. Styles a link that has been previously clicked (visited)

5. Styles an element only when it is visible on the screen

6. Applies a style when an element is hovered over


Questions No: 16/30

How do you apply styles to all <input> elements that are checked
आप जाँचे गए सभी <इनपुट> तत्वों पर शैलियाँ कैसे लागू करते हैं

Questions No: 17/30

Which of the following selector applied styles to elements that are valid per HTML5 validations set either with the pattern or type attributes ?
निम्न सेलेक्टरों में से कौन स्टाइल उन एलिमेंट पर लागू होता है जो एचटीएमएल5 मान्यताओं के अनुसार वैध है या तो पैटर्न या प्रकार एट्रीब्यूटो के साथ सेट हैं ?

Questions No: 18/30

Match the CSS Sub-Selector with Its Meaning


CSS Sub-SelectorMeaning
A. div p1. Selects all <p> elements directly inside a <div>
B. div > p2. Selects all <p> elements inside a <div>, at any level
C. div + p3. Selects the first <p> element immediately after a <div>
D. div ~ p4. Selects all <p> elements that come after a <div>, but not necessarily immediately

5. Selects only the first <p> inside a <div>

6. Selects all <p> elements inside a <div>, including nested ones


Questions No: 19/30

What does the general sibling selector (~) do
सामान्य सहोदर चयनकर्ता (~) क्या करता है

Questions No: 20/30

Which of the following selector selects the element that is the target of a referring URI?
निम्नलिखित में से कौन सा सेलेक्टर एलिमेंट को सेलेक्ट करता है जो एक रेफ़रिंग यूआरआई को टारगेट करता है?

Questions No: 21/30

Which of the following selector selects the elements that are currently enabled?
निम्नलिखित में से कौन सा चयनकर्ता उन एलिमेंट का चयन करता है जो वर्तमान में एक्टिव हैं?

Questions No: 22/30

Which of the following attribute is used to provide a unique name to an element?
किसी एलिमेंट को यूनिक नाम प्रदान करने के लिए निम्नलिखित में से किस विशेषता का उपयोग किया जाता है?

Questions No: 23/30

Which of the following CSS selectors are used to specify a group of elements?
निम्नलिखित में से किस सीएसएस चयनकर्ता का उपयोग तत्वों के समूह को निर्दिष्ट करने के लिए किया जाता है?

Questions No: 24/30

Which of the following selector selects all elements of E that have the attribute attr that end with the given value?
निम्नलिखित में से कौन सा चयनकर्ता E के उन सभी तत्वों का चयन करता है जिनमें विशेषता attr है जो दिए गए मान के साथ समाप्त होती है?

Questions No: 25/30

The pseudoclass is activated when the user moves the mouse cursor over the specified element.
जब उपयोगकर्ता माउस कर्सर को स्पेसिफाइड एलिमेंट पर ले जाता है तो ___________ सूडोक्लास एक्टिवेट हो जाता है |

Questions No: 26/30

Which of the following selectors select any tag with an id attribute set ?
निम्नलिखित में से कौन सा सिलेक्टर आईडी एट्रीब्यूट के साथ किसी भी टैग को सेलेक्ट करता है?

Questions No: 27/30

To cluster a group of elements together to apply formatting
फॉर्मेटिंग_________लागू करने के लिए एलिमेंट के समूह को एक साथ समूहित करना |

Questions No: 28/30

Which of the following selector selects the elements that are the default among a set of similar elements?
निम्नलिखित में से कौन सा चयनकर्ता उन तत्वों का चयन करता है जो समान तत्वों के सेट के बीच डिफ़ॉल्ट हैं?

Questions No: 29/30

Which selector is being used to specify a group of elements
एलिमेंट के ग्रुप को स्पेसिफ़ाई करने के लिए किस चयनकर्ता का उपयोग किया जा रहा है

Questions No: 30/30

Which pseudo-class targets an input field while it is being typed in
कौन सा छद्म वर्ग किसी इनपुट फ़ील्ड को टाइप करते समय लक्षित करता है