• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. CSS Optimization > Cut the Comments

Cut the Comments

Comments within style sheets start with /* and end with */. They can be useful for documenting more complex style sheets but should be minimized or eliminated on high-traffic pages. Here's a verbose example:

h1 {color:purple} /* first-level headers are the color purple */ 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint