Media queries (responsive design)
A CSS rule used to apply different styles for different media types or screen sizes.
What it does: The landscape orientation keyword matches devices where viewport width exceeds height dimensions. The and keyword strings screen target constraints alongside specific feature conditions. @media is a rule built directly into CSS to control conditional layouts. max-width applies styles if the viewport width is less than or equal to the defined value. CSS requires media features to be enclosed within round parentheses. Portrait mode means the device screen is taller than it is wide. The 'and' operator allows developers to combine features like screen types and specific widths. All at-rules in CSS, including media queries, must start with the @ symbol character.
Common mistakes: Line 0 is incorrect because it is missing the mandatory @ character at the beginning of media. Line 1 is incorrect because CSS properties inside a media query block must use colons (:), not equals signs (=).
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
@mediaFill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →