CSS Media Queries

In CSS2, the @media rule was added, allowing for the definition of distinct style rules for various media types. The CSS3 media queries concept expanded on the CSS2 media type concept by examining the device's capabilities rather than its type.