What is a media query in CSS used for in responsive design?
- To apply different styles based on device characteristics
- To create animations in the CSS code
- To define variables in the CSS code
- To embed media files in the CSS code
A media query in CSS is used to apply different styles based on device characteristics such as screen width, height, or device orientation. It allows developers to create responsive designs by adapting styles to different devices.
Loading...
Related Quiz
- In a project requiring extensive database interactions and rapid development, which server-side language would provide the most suitable environment, and why?
- _______ is a data format commonly used for representing resources in RESTful APIs.
- CSS preprocessors like _______ and _______ provide features to streamline responsive design workflows.
- A company needs to handle large volumes of semi-structured data. Which type of database would you recommend, and why?
- What does AWS stand for?