|MySQL Conference and Expo April 14-17, 2008, Santa Clara, CA|
CSS also allows for comments, but it uses a completely different
syntax to accomplish this. CSS comments are very similar to
C/C++ comments, in that they are surrounded by Comments can span
multiple lines, just as in C++: It's important to remember that
CSS comments cannot be nested. So, for example, this would not
be correct: However, it's hardly ever desirable to nest
comments, so this limitation is no big deal. If you wish to
place comments on the same line as markup, then you need to be
careful about how you place them. For example, this is the
correct way to do it: Given this example, if each line isn't
marked off, then most of the style sheet will become part of the
comment, and so will not work: In this example, only the first
rule ( Moving on with our example, we see some more CSS
information actually found inside an HTML tag! For cases where
you want to simply assign a few styles to one individual
element, without the need for embedded or