Naming and Saving Your Page
After you've built your page, you'll want to name it and save it in your local site folder. After you work on the page, you'll need to save your changes. You should get in the habit of saving often; there's nothing more annoying than lost work due to a power failure or because your computer decides to lock up.
It's important to understand the difference between a page's title and its name. The title appears at the top of the page in a Web browser; the name is the file's name, and will be part of the Web address, or URL, of the page. For example, "Welcome to HomeCook. info!" is the page's title, but index.html is the page's name.
To save your page for the first time:
- Choose File > Save, or press Ctrl-S (Cmd-S).
The Save As dialog appears (
Figure 3.23
).
Figure 3.23 Use the Save As dialog to place your new document where you want it inside your local root folder, and also to give it a file name.
- Enter the name for the page.
Dreamweaver gives the page a default name of Untitled-x, where x is the number of pages you've created since you launched Dreamweaver. On Windows, the dialog shows the name in the "File name" field without showing the extension; on the Mac, the name appears with the extension, but only the name is selected, ready for replacement with whatever you type (
Figure 3.24
).
Figure 3.24 The Mac version of the Save As dialog shows you the document's extension, and selects the Untitled name for you.
- You should save the file inside your local site folder. If you want the file to be in a particular folder inside your site, navigate to that folder.
- Click Save.
To save changes you make in your pages:
- Choose File > Save, or press Ctrl-S (Cmd-S).