CSS: Comment Syntax
Block Comment Syntax
CSS has block comment syntax.
comment start with
/*
and ends with
*/
Anything in between is ignored.
/* css comment */ /* comment is ignored */ /* can be multiple lines */
Cannot be Nested
/* block comment cannot nest /* this is error */ */
No Line Comment Syntax
There is no line comment syntax.
CSS, misc, advanced
- CSS: @media query (responsive design)
- CSS: Variable (Custom Property)
- CSS: calc
- CSS: Reset, Default Values
- CSS: global keywords (property values)
- CSS: nesting selector (ampersand &)
- CSS: Computed Style
- CSS: Browser Default Style Sheet (2025-12)