Recall & Review
beginner
What is a media query in CSS?
A media query is a CSS technique that applies styles only when certain conditions about the device or screen are true, like screen width or orientation.
Click to reveal answer
beginner
How do you write a basic media query for screens smaller than 600px?
Use
@media (max-width: 600px) { /* CSS rules here */ } to apply styles only when the screen width is 600 pixels or less.Click to reveal answer
beginner
What does
min-width mean in a media query?min-width means the styles inside the media query apply only if the screen width is at least the specified value.Click to reveal answer
intermediate
Why are media queries important for accessibility?
They help make websites easier to use on different devices and screen sizes, improving readability and navigation for everyone.
Click to reveal answer
intermediate
What is the difference between
max-width and min-width in media queries?max-width applies styles up to a certain screen width, while min-width applies styles from that width and above.Click to reveal answer
Which media query applies styles only on screens wider than 800px?
✗ Incorrect
The
min-width condition applies styles when the screen width is at least 800px.What does this media query do?
@media (max-width: 500px) { ... }✗ Incorrect
The
max-width condition targets screens up to 500px wide.Which media feature is used to detect device orientation?
✗ Incorrect
The
orientation media feature detects if the device is in portrait or landscape mode.How can you combine multiple conditions in a media query?
✗ Incorrect
The
and keyword combines multiple conditions that all must be true.Which of these is a valid media query for print devices?
✗ Incorrect
The
print media type targets printers and print previews.Explain how media queries help make a website responsive.
Think about how websites look different on phones and computers.
You got /3 concepts.
Describe the difference between using
min-width and max-width in media queries.Consider small screens versus large screens.
You got /3 concepts.