CSS At-rules
CSS at-rules — @media, @keyframes, @font-face, @supports and more. This category documents 46 CSS at-rules entries, and each page gives you the full syntax, the accepted values with explanations, a working example, and browser support data. The entries are: @media, @keyframes, @font-face, @import, @supports, @container, @layer, @scope, @starting-style, @property, @page, @counter-style, @charset, @namespace, @color-profile, @font-palette-values, @font-feature-values, @custom-media, prefers-color-scheme, prefers-reduced-motion, prefers-contrast, orientation, width (media), height (media), aspect-ratio (media), display-mode, hover (media), any-hover (media), pointer (media), any-pointer (media), prefers-reduced-transparency (media), prefers-reduced-data (media), inverted-colors (media), scripting (media), dynamic-range (media), video-dynamic-range (media), update (media), overflow-block (media), overflow-inline (media), grid (media), and more. Not sure where to start? @media and @keyframes are among the most used entries in this category. The at-rules category is one of 21 categories in the CSS Reference, which covers 841+ entries in total. You can also search across every category from the search page, learn the topic end to end in the guides, or return to the CSS Reference homepage.