CSS Comments

Posted The: 22/03/2008 At: 17:19

Last Edited: 30/04/2009 At: 20:55

Contents:

In CSS comments begin with "/*" and ends with "*/", in the example below i listed valid ways to write your comments.

Example

You can use comments whenever you want, they are especially useful when keeping track of what the many different portions of code dose, and when you are multiple people working on the code; below are some valid ways of writing comments in css.

    body { /* This is a Comment */
     font-size: /* This is a Comment */ 2em;
    }
    p {
      font-size: 1.5em; /* This is a Comment */
    }
/* This is
 a multi-line 
 Comment */

Note: Comments are ignored by browsers.

Comments: [0]

© Brugbart Webdesign