CSS - Comments

About

The comment syntax of CSS is the same than javascript.

They:

  • 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.





Discover More
Javascript - Comments

in Javascript Same rule than in CSS: See and double slash



Share this page:
Follow us:
Task Runner