Related Tags

css
singe line comment
multi line comment
/*

Comments in CSS can be added by using the /* tag, which is then closed off by using */.

Note: Code that is commented out is not used to style the page.

This technique can be used to add both single and multi-line comments.



/* This is a SINGLE LINE COMMENT */

Note: Users may observe that the // tag can be used to add single line comments. However, this is not the standard practice in CSS and therefore should not be used.



Multi-line comments can be added using the same /* tag:

/* This is a
MULTI LINE COMMENT
in CSS */

• CSS

RELATED TAGS

css