HTML & CSS Quiz: CSS Selectors

This CSS quiz checks that you can read a selector and tell which elements it matches. You will work with classes, ids, attribute selectors, descendant and child combinators, and common pseudo-classes like :hover and :nth-child().

आसान 10 सवाल ~5 मिनट पास होने के लिए 80%

मोड चुनें

आप गेस्ट के तौर पर खेल रहे हैं: XP और streak सेव रखने के लिए साइन इन करें।

सैंपल सवाल

सवाल 1 / 10

Which selector matches every element that has the class card?

जवाब दिखाएं

C. .card A dot selects by class, so .card matches any element whose class list contains card. #card selects by id, and a bare card looks for a <card> element.

इस क्विज़ में क्या है

  • Type, class, id and universal selectors
  • Descendant, child and sibling combinators
  • Attribute selectors like [type="email"]
  • Pseudo-classes such as :hover, :first-child and :nth-child()
  • Pseudo-elements like ::before and grouping with commas

अक्सर पूछे जाने वाले सवाल

क्या अकाउंट ज़रूरी है?

नहीं। कोई भी खेल सकता है। XP, streak, badge और हिस्ट्री सेव रखने के लिए साइन इन करें।

क्या मैं इसे दोबारा दे सकता हूं?

हां। आपका बेस्ट स्कोर सेव रहता है, और हर बार सवाल और जवाब शफ़ल होते हैं।