Creating a library item

You can create a library item from any selected portion of a document body. When you create a library item from a selected portion of document, Dreamweaver converts the selected area into a library item.

Library items can include any BODY element, including text, tables, forms, images, Java applets, plugins, and ActiveX elements. Dreamweaver stores only a reference to linked items such as images. The original file must remain at the specified location for the library item to work correctly.

Library items can also contain behaviors, but there are special requirements for editing the behaviors in library items. See Editing a behavior in a library item. Library items cannot contain timelines or style sheets, as the code for these elements is part of the HEAD.

To create a library item:

1 Select a portion of a document to save as a library item.
2 Do one of the following:
Choose Window > Library and drag the selection into the Library palette, or click the Create button on the Library palette. Press Control (Windows) or Command (Macintosh) to prevent the selection from being replaced by the new library item.
Choose Modify > Add Object to Library.
3 Enter a name for the new library item.