Media queries are<br> used for the following<br>
<span style="font-size: inherit;">To conditionally apply styles with the CSS @media and @import at-rules.</span><br>
<b style="font-size: inherit;">To target specific media for the <style>, <link>, <source>, <br>and other </b><b style="font-size: inherit;">HTML elements with the media= attribute.</b><br>
You can also provide a media type or query inside a media attribute; <br><b>this resource will then only be loaded if the media condition is true.</b><br> For example:<br><br><link href="print.css" rel="stylesheet" media="print"><br><link href="mobile.css" rel="stylesheet" media="screen and (max-width: 600px)"<br>
<span style="font-size: inherit;">To test and monitor media states using the</span><b style="font-size: inherit;"> Window.matchMedia()</b><span style="font-size: inherit;"> and <br></span><b style="font-size: inherit;">MediaQueryList.addListener() </b><span style="font-size: inherit;">JavaScript methods.</span><br>