MMDT1021 Chapter 9 Notes - page 2

Adding Comments to a Style Sheet

You can add comments to style sheets to document your work.

Textual comments in CSS are similar to those in the C / Java programming languages:

b { color: red }  /* bold text is red, really red!! */

Anything between the opening comment '/*' and the closing comment '*/ is ignored by the browser.

Also comments can span several lines:

/* Assignment Lab9
Author: John Doe
Things to do:  Change bold text from red to blue  */

Code Page
Here is an external style sheet containing some comments. CSS source