What is the @media rule in CSS used for?

  • Applying styles to specific elements
  • Creating animations
  • Defining media queries for responsive design
  • Importing external stylesheets
The @media rule is used for defining media queries in CSS. Media queries allow you to apply different styles for different devices or screen sizes, enabling the creation of responsive designs. It is not used for applying styles directly to elements, creating animations, or importing external stylesheets.
Add your answer
Loading...

Leave a comment

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