matchMedia()

Term side of the Card
Topic: Interact with Client
Unit title: matchMedia()
Categories: Method
Explanation side of the Card

Explanation: The browser API method that evaluates a media query and returns a `MediaQueryList` object, which can be used to determine if the document matches the query. It's often used for responsive design to apply styles based on screen size.

Browser compatibility:
  • The chrome browser supports this feature starting from version 9
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 6
  • The safari browser supports this feature starting from version 5.1
Availability: