April 2005
Intermediate to advanced
336 pages
6h 33m
English
Just as you can add comments to your HTML files to describe sections, hide markup and content from the browser, or add directives to fellow document authors, you can comment your CSS documents. And just as HTML can be written with indentations or other personal formatting preferences, so can CSS.
CSS comments are different than HTML comments. CSS comments open with a forward slash and an asterisk, and close with an asterisk followed by a forward slash. Any content within that area is not interpreted by the browser (see Example 7-5).
Example 7-5. Commenting CSS
/* global styles */body { background-color: orange; font-family: Arial, Helvetica, sans-serif; color: white; ...
Read now
Unlock full access