After entering all the desired parameters in the Tag Editor, clicking OK inserts the code into the page with
the cursor in between the opening and closing tags (or after the tag if it is empty). The Tag Chooser uses a
nonmodal window and remains open until Close is selected.
Because the Tag Chooser is nonmodal, you may not realize that you have already inserted the
desired tag, causing you to select Insert again. Dreamweaver does not prevent you from entering
multiple versions of the same tag.
Adding Code through the Snippets Panel
Using the valuable Snippets feature, you can save portions of HTML code for easy recall in other files. It??™s a
lot easier than copying and pasting blocks of code from various files. Tag snippets range from a single tag,
such as an HTML comment, to a full navigation layout. Commonly used JavaScript and other language
functions and methods are also good candidates to be turned into snippets for later use.
CAUTION CAUTION
NOTE NOTE
187
Accessing the Code Directly 6
Dreamweaver provides a notable assortment of snippets, but the most important aspect of this feature is
that it??™s extensible. Coders and noncoders alike can easily add any commonly used section of code for later
reuse. Snippets work in one of two different ways: A snippet either inserts a solid code block at the cursor
point or wraps a selection with before and after code.
Pages:
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426