files/en-us/web/css/guides/syntax/index.md
The CSS syntax module describes, in general terms, the structure and syntax of cascading stylesheets, or CSS. It defines CSS as the language for describing the rendering of structured documents (such as HTML and XML), on the web and elsewhere.
This module doesn't define any properties, data types, functions, or at-rules. Rather, it elaborates on how all of these features should be defined and how user agents should parse CSS.
[!NOTE] The module explicitly states that {{cssxref("@charset")}} is not an actual at-rule, but rather an unrecognized legacy rule that should be omitted when a stylesheet is grammar-checked. The only valid
@charsetusage is at the very beginning of a stylesheet, where it is interpreted as a special byte sequence stripped before processing the content.
Introduction to CSS syntax: declarations, rulesets, and statements
Learn CSS first steps: CSS syntax
CSS selectors module:
CSS cascading and inheritance module:
CSS custom properties for cascading variables module:
--*)CSS conditional rules module:
WHATWG specification:
{{Specifications}}