1. कौन सा responsive design का pillar है?
- Fixed widths केवल
- Flexible grid
- Desktop-first approach
- Pixel-perfect desktop mockups
जवाब देखें
जवाब: Flexible grid
%, em, rem का उपयोग करके flexible grid एक core pillar है।
Responsive और Mobile-First Web Design कोर्स के 18 सवाल, हर सवाल के सही जवाब और explanation के साथ। जवाब देखने से पहले ख़ुद सोचें।
जवाब: Flexible grid
%, em, rem का उपयोग करके flexible grid एक core pillar है।
जवाब: जब स्क्रीन 768px या चौड़ी हो तो लागू करें
`min-width: 768px` का अर्थ है "768px और ऊपर" — एक lower bound।
पाठ: सीएसएस media queries
जवाब: Content
Content-driven breakpoints किसी भी device के लिए काम करते हैं।
पाठ: Breakpoints रणनीति
जवाब: वे touch screens पर invisible हैं
Touch devices का कोई hover state नहीं है।
पाठ: Touch interactions
जवाब: Columns को कम से कम 280px सुनिश्चित करता है, space भरने के लिए grow करता है
minmax() flexible sizing के लिए minimum और maximum दोनों values set करता है।
पाठ: CSS Grid responsive
जवाब: Components अपने container के अनुसार adapt होते हैं
Container queries reusable components बनाते हैं जो कहीं भी adapt होते हैं।
पाठ: Container queries
जवाब: prefers-reduced-motion
prefers-reduced-motion: reduce OS की reduce-motion setting को दर्शाता है।
जवाब: 44x44px
44x44px (Apple) या 48x48px (Android) recommended है।
जवाब: viewport
Viewport meta tag mobile browsers को desktop width मानने से रोकता है।
जवाब: min-width
Base styles mobile को target करते हैं, और min-width बड़े screens के लिए layers जोड़ता है।
जवाब: Scales smoothly between a minimum and maximum
Value पसंदीदा size का अनुसरण करता है पर min और max से बाहर नहीं जाता।
जवाब: repeat(auto-fit, minmax(280px, 1fr))
minmax के साथ auto-fit जगह के अनुसार columns wrap करता है।
जवाब: Their container's width
वही component जहाँ रखा जाए वहाँ adapt होता है।
जवाब: srcset
sizes के साथ srcset browser को सही resolution download करने देता है।
जवाब: 44x44px
बड़े targets touch screens पर mis-taps रोकते हैं।
जवाब: CLS
Images और ads width, height या aspect-ratio से जगह आरक्षित करें तो CLS घटता है।
जवाब: Fixed-width containers
Fixed-width containers layouts को एक आकार पर lock करते हैं — responsive design के opposite। इसके बजाय flexible widths का उपयोग करें।
जवाब: Simpler CSS, prioritization, better performance
Mobile-first CSS cleaner है, और आप complexity को केवल जब जरूरत हो तब add करते हैं।