A media query is a CSS3 feature that makes a webpage adapt its layout to different screen sizes and media types.