🔍Media queries are used to create responsive websites and change styles based on screen sizes.
🌟Container queries are used to create responsive components and change styles based on component sizes.
📐Media queries are written using `@media` followed by the conditions, such as screen size or aspect ratio.
🔢Container queries are written using `@container` followed by the conditions, such as container size or aspect ratio.
🌐Media queries are widely supported by browsers, while container queries are still in development and not fully supported.