Adding Comments to Cascading Style Sheets


Just as other coding languages do, the CSS language enables you to add comments to your style sheets to make them easier to read and understand. Comments in CSS are surrounded by a /* opening tag and a */ closing tag. So the following code would be considered a comment and would not be rendered in the style sheet:

/* This is a comment within a style sheet */


Again, I cannot stress enough how important it is to fully document your code by using comments. Even if you plan to strictly use the Dreamweaver CSS panel to create and manage your styles, you might consider opening your style sheets and providing the appropriate comments throughout the page to indicate what each style is expected to do.



Special Edition Using Macromedia Studio 8
Special Edition Using Macromedia Studio 8
ISBN: 0789733854
EAN: 2147483647
Year: 2003
Pages: 337

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net