What is CSS comments ?

CSS comments are used to describe our css code and the next time if we wanted to edit or change the main code, it can help us. Comments are not visible to the users or browser.  CSS comment starts with by the symbol of /* and ends with */.

Sometimes you or your partner comments mentioned in the source document may be quite useful. Though comments are not displayed in the browser even, in cases of any big web site creation where and why for which purpose a property has been used, If the topics is mentioned as a comments with each property then it is quite simple to correction or addition for web developers in the next time. CSS has own comment syntax (Rules).

CSS Comments Rules : /*  comment goes here */

When are read the style sheets in the middle of writing / * and * / are discarded. That means you can write comment anywhere on a style sheets, even in the middle of a rule.

Leave a Reply

Your email address will not be published. Required fields are marked *