HTML & CSS Quiz: Modern CSS

This CSS quiz covers features that now work in every major browser: :has(), container queries, native nesting, clamp(), aspect-ratio, logical properties and cascade layers. The questions focus on the details that trip people up in real code.

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

मोड चुनें

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

सैंपल सवाल

सवाल 1 / 10

Which elements does this selector match?

.card:has(img) { padding: 0; }
जवाब दिखाएं

C. Cards that contain an img anywhere inside them :has() matches the element before it when the selector inside matches relative to it, here any descendant img. The style applies to the card, not the image. :has() is supported in all major browsers.

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

  • The :has() relational selector
  • Container queries and container-type
  • Native CSS nesting and how it differs from Sass
  • clamp() and aspect-ratio calculations
  • Logical properties, inset and @layer

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

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

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

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

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