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

Naming Layers

Dreamweaver assigns generic names automatically in numeric order: Layer1, Layer2, and so on. These names are not very descriptive, especially when you create complex pages with multiple layers. It is best to get in the habit of giving your layers short, descriptive names.

In the layers.htm document, choose Window > Layers.

The Layers panel gives you a list of the layers on the page. You can use it to select a layer, name a layer, change the layer's visibility, change the stacking order, or select multiple layers on the page. When you create a layer, it is placed at the top of the list on the Layers panel, before other layers, if there are any. If the layer is hidden or placed off the page, the Layers panel is the easiest method of selecting the layer.


If the insertion point is inside a layer, that layer's name will appear in bold on the Layers panel and the selection handle will appear in the document window to indicate that the layer is active but not selected.

The layers you just created are named Layer1, Layer2, and Layer3.

Double-click Layer1 in the Layers panel, type textlayer for the layer name, and press Enter (Windows) or Return (Macintosh). Double-click Layer2 in the panel, type picturelayer, and press Enter (Windows) or Return (Macintosh).

Don't change the name for Layer3.

Do not use spaces or special characters (including the underscore character) for layer names. A layer name must be unique—don't assign the same name to more than one layer or to a layer and another element, such as a graphic. It is a good idea to use a consistent naming scheme for all layer names.


You can also type the name in the Layer ID text field on the property inspector if the layer is selected.

Save the document.

Leave this file open for the next exercise.



Not a subscriber?

Start A Free Trial

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