CSS Media Query Syntax
Multiple Choice Easy
Question
Which media query targets screens wider than 768px?
Hint
min-width means "at least this wide".
Explanation
@media (min-width: 768px) applies styles when the viewport is at least 768px wide. This is the mobile-first approach: base styles target small screens, and media queries add styles for larger screens. max-width: 768px would target screens up to 768px (desktop-first approach).
Related Resources
Related Lessons
- Responsive Design
Learn responsive design.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.