4.1.9 Comments

Chapter 4 - Syntax and basic data types - 4.1.9 Comments

Go to the relevant page of the specification.

c11-import-000
Basic Containment
c17-comments-000
Comments
c17-comments-001
Comments
comments-001
Parsing comments within style tag
Comments are allowed anywhere within a style tag declaration and are ignored.
comments-002 (invalid)
Nested comments
Comments cannot be nested.
comments-003 (invalid)
HTML comments and CSS comments
SGML comment delimiters do not delimit CSS comments.
comments-004 (invalid)
Parsing of invalid comments
Comments that are invalid are ignored.
comments-005 (invalid)
Parsing of escaped "/" within a valid comment
A slash '/' escaped with a backslash will remove its special meaning.
comments-006 (invalid)
Parsing of escaped "*" within a valid comment
A star '*' escaped with a backslash will not remove its special meaning.
comments-007 (invalid)
Parsing of valid comment that is empty
Empty comments do not affect parsing of rule.
comments-008 (invalid)
Parsing of escaped opening comment
Escaping a slash '/' for an opening comment makes the comment invalid.
comments-009 (invalid)
Parsing of invalid escaped "*" in open comment
Escaping a star '*' for an opening comment makes the comment invalid.
sgml-comments-000
SGML comments
UAs must ignore SGML comment delimiters between statements.
sgml-comments-001
Parsing SGML comments
SGML comment tokens are parsed and ignored.
sgml-comments-002
Parsing of CDO/CDC in stylesheets