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

17.1. Snippets Basics

Snippets aren't fancy or complex, but they sure save time. A snippet—new in Dreamweaver MX—is simply a chunk of code that you store away and then plunk into other Web pages. It could be HTML, JavaScript, or any of the other programming languages you might encounter. Dreamweaver comes with hundreds of snippets organized into different folders, like Comments (for creating HTML comments), Footers (canned footer designs), and Form Elements (useful form parts like pop-up menus).

For example, say you always use the same table design to create a sidebar on a page (see the example on page 518). Each time you want to create a similar table, you could go through all the same steps to build it—or you could turn that table into a snippet, and then, with a simple double-click, add it to page after page of your site.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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