CSS comments

In my WordPress Calendar Plugin article, I noted that HTML comments can be added to code to either insert your own comments regarding code definitions or to signal browsers to skip sections of code without physically erasing the code from the file. I have also learned that this is also true for CSS comments. For example, /*this is a description of why this code is here*/ or /*browser please skip this section of code*/. I know for most of you out there, this is perhaps too elementary to even mention. However, for me, this is a little discovery. My books are not HTML & CSS for dummies, so the writers assume a basic knowledge of the subject. When I catch on to what is going on, a little cartoon-like lightbulb appears over my head as I am studying up. Hopefully this little tidbit will aid someone out there who is also learning from the ground up.

One Response to “CSS comments”

  1. The Imaginary Diva Says:

    Thanks a lot for the dose of confidence. I really appreciate it….

Leave a Reply