Which CSS technique is commonly used for creating responsive grids?
A). <div>Flexbox
B). <div>Floats
C). <div>Positioning
D). <div>Transforms
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 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 can media queries help in creating a responsive navigation menu?
A). <div>By using fixed widths for menu items.
B). <div>By hiding the navigation menu on smaller screens.
C). <div>By applying different styles to the menu based on viewport size.
D). <div>By using animations for menu transitions.
What is the purpose of using @media in CSS?
A). <div>To target specific HTML elements.
B). <div>To define media queries for responsive design.
C). <div>To apply inline styles to elements.
D). <div>To specify font styles and colors.
What does a fluid grid layout achieve in responsive design?
A). <div>It uses fixed widths for all elements.
B). <div>It ensures elements maintain their relative proportions when the viewport size changes.
C). <div>It restricts the layout to a specific viewport size.
D). <div>It adds unnecessary padding and margins.
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.
What does the orientation media feature target in media queries?
A). <div>Device's color scheme.
B). <div>Device's aspect ratio.
C). <div>Device's screen size.
D). <div>Device's screen orientation (portrait or landscape).
How does the min-resolution media feature benefit high-resolution displays in media queries?
A). <div>It targets devices with reduced screen resolution.
B). <div>It targets devices with specific pixel densities.
C). <div>It targets devices with limited color capabilities.
D). <div>It targets devices with slower processing speeds.
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.