How do media queries with orientation: landscape and orientation: portrait help in responsive design?
A). <div>They target devices based on color schemes.
B). <div>They target devices based on screen aspect ratio.
C). <div>They target devices based on screen resolution.
D). <div>They target devices based on screen orientation.
How does using em or rem units benefit responsive typography in CSS?
A). <div>They ensure text remains the same size on all devices.
B). <div>They allow text to scale based on the parent element's font size.
C). <div>They restrict text size to a specific pixel value.
D). <div>They apply a fixed font size to all text elements.
How can media queries help in optimizing images for different devices?
A). <div>By reducing image quality on high-resolution screens.
B). <div>By automatically resizing images based on screen resolution.
C). <div>By applying different image formats for different devices.
D). <div>By specifying different image sizes for different viewport sizes.
How does using percentages for widths benefit responsive layouts?
A). <div>It allows elements to overflow their containers.
B). <div>It ensures elements have fixed widths on all devices.
C). <div>It allows elements to scale proportionally based on the viewport size.
D). <div>It restricts the layout to a specific screen resolution.
What is the purpose of using media queries in responsive design?
A). <div>To add animations and transitions.
B). <div>To apply different styles based on viewport size, device characteristics, and screen orientation.
C). <div>To structure HTML documents.
D). <div>To manipulate server-side data.
How does a media query for max-width: 768px affect styles in CSS?
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 create a mobile-first responsive design approach?
A). <div>By targeting desktop screens first.
B). <div>By targeting mobile screens first.
C). <div>By targeting tablets first.
D). <div>By targeting large screens first.
What does the max-device-width media feature target in media queries?
A). <div>Device's maximum screen resolution.
B). <div>Device's maximum physical screen width.
C). <div>Device's maximum screen height.
D). <div>Device's maximum aspect ratio.
What is a breakpoint in responsive design?
A). <div>A point where the code breaks and stops working.
B). <div>A specific screen width where the layout adjusts.
C). <div>A line of code that defines media queries.
D). <div>A visual indication of device compatibility.
How do media queries with min-width and max-width benefit responsive layouts?
A). <div>They target devices based on color schemes.
B). <div>They target devices based on screen orientation.
C). <div>They target devices based on screen width.
D). <div>They target devices based on screen resolution.