Which CSS rule is used to define media queries?
A). <div>@style
B). <div>@media
C). <div>@query
D). <div>@apply
How does a media query for max-width: 768px affect styles?
A). <div>It applies styles when the screen width is greater than 768px.
B). <div>It applies styles when the screen width is less than or equal to 768px.
C). <div>It applies styles when the screen height is greater than 768px.
D). <div>It applies styles when the screen height is less than or equal to 768px.
How can media queries be used to target devices with specific color capabilities?
A). <div>By using the min-color media feature.
B). <div>By using the max-color media feature.
C). <div>By using the color media feature.
D). <div>By using the device-color media feature.
How can media queries be used to improve accessibility in web design?
A). <div>By targeting devices with reduced color capabilities.
B). <div>By targeting devices with reduced motion sensitivity.
C). <div>By targeting devices with reduced display resolution.
D). <div>By targeting devices with specific user preferences or needs.
Which media feature is commonly used to target high-resolution screens, such as Retina displays?
A). <div>device-width
B). <div>device-height
C). <div>min-resolution
D). <div>resolution
How can media queries be used to target high-resolution screens?
A). <div>By using the max-resolution media feature.
B). <div>By using the min-resolution media feature.
C). <div>By using the resolution media feature.
D). <div>By using the pixel-density media feature.
How do media queries with min-resolution and max-resolution benefit styling for high-density displays?
A). <div>They target devices with reduced display resolution.
B). <div>They target devices with reduced motion sensitivity.
C). <div>They target devices with reduced color depth.
D). <div>They target devices with specific pixel densities.
What does the prefers-color-scheme media feature target in media queries?
A). <div>Device's preferred color scheme (light or dark mode).
B). <div>Device's screen brightness level.
C). <div>Device's color depth and capabilities.
D). <div>Device's screen resolution.
How does the orientation media feature help in adjusting styles based on device orientation?
A). <div>It applies different styles based on device's aspect ratio.
B). <div>It applies different styles based on device's color scheme.
C). <div>It applies different styles based on device's screen resolution.
D). <div>It applies different styles based on device's portrait or landscape mode.
Which media feature is commonly used to target smaller screens in media queries?
A). <div>max-width
B). <div>min-width
C). <div>max-height
D). <div>min-height