A media query conditionally applies CSS styles according to characteristics such as viewport dimensions, device capabilities, or media type. It helps an interface adapt across devices and screen sizes while HTML remains responsible for content. section 2.2
In a frontend interview, a useful question is: how would the same page remain usable at different screen sizes? Explain what condition should change the styling, then distinguish that decision from arranging elements with flexbox or grid. The goal is a responsive, accessible interface—not merely a different appearance. section 2.2







