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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *