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

17. Snippets and Libraries > 17.1. Snippets Basics

Snippets Basics

Snippets aren’t fancy or complex, but they sure save time. A snippet 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 adding HTML, CSS, and JavaScript comments) Footers (canned footer designs), and Form Elements (useful form parts like pull-down menus).

For example, say you always use the same table design to create a sidebar on a page. 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