Create a Link

Now that you have two pages, you can link them. You’ll link to zoofacts.htm from your main page, index.htm.

  1. In Dreamweaver, switch to index.htm.
  2. Type some text about zoos to use as your link.
  3. Select the text that you want to link to zoofacts.htm.

    Design Note: Control. The text you use for your link should be brief but descriptive, giving your visitors an idea of where the link will take them even before they click it. To link to a page that provides the locations of zoos, the link click here for more information lacks detail; the link zoo locations is clear and concise.

    You’ll use the Properties Bar to make the link. If you can’t see it, switch to the Design view by clicking the Design tab at the top left..
  4. In the Properties Bar, click on the Browse for File icon (the yellow folder). A Select HTML File dialog box appears.

     
  5. Using the dialog box, locate and select the file zoofacts. The selected text is underlined and appears in the link color you chose. In the Properties Bar, the Link field reads: "zoofacts.htm."

    To check if the link works properly, you have to view it in Internet Explorer.
     
  6. Save your work and preview in Internet Explorer.
     
  7. Click your link. The link briefly appears in your chosen active link color, and then zoofacts.htm appears.
     
  8. Click the Back button. The link appears in the color you chose for visited links.

    If zoofacts.htm doesn’t appear, repeat the steps in this section. You can also check your HTML Source to determine the problem.

    Your code should look like the following line:
    <a href="zoofacts.htm">zoological facts</a>.
    This code tells Internet Explorer that when a user clicks on the link zoological facts it should find and display zoofacts.htm, which is in the same directory as index.htm. This link is called a relative link because the location of the linked document, zoofacts.htm, is given in relation to the linking document, index.htm.
     
  9. Switch back to Dreamweaver for final additions to your pages.

Tutorial Source