Which CSS technique is commonly used for creating responsive grids?
A). <div>Flexbox
B). <div>Floats
C). <div>Positioning
D). <div>Transforms
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 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.
How can responsive design improve user experience across devices?
A). <div>By using heavy animations and visual effects.
B). <div>By providing consistent and optimized layouts across different devices.
C). <div>By hiding content on smaller screens.
D). <div>By restricting access based on screen resolution.
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.
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.
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 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 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.