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

Going Live

One other valuable way that comments can be employed is to “comment out” certain sections of code that you want to hide temporarily. Sometimes you may want to see how a page looks with or without a certain section, or you may have several sections that you activate and deactivate at will, and don’t want to have to retype it all every time.

Commenting out code is simply a matter of adding comment tags before and after the code. At any time in the future, you can remove those tags and the whole block of code will be visible again. Let’s take an example where you have a link to a page that is temporarily unavailable. Rather than allow the link to be broken, comment out the link temporarily. If your original code looks like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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