CSS - Comments


The comment syntax of CSS is the same than javascript.


  • begin with the characters /*
  • end with the characters */.

They may occur anywhere between tokens, and their contents have no influence on the rendering. Comments may not be nested.

CSS also allows the SGML comment delimiters () in certain places defined by the grammar, but they do not delimit CSS comments. They are permitted so that style rules appearing in an HTML source document (in the STYLE element) may be hidden from pre-HTML 3.2 user agents.

Powered by ComboStrap