decorative banner

Using anchors for links


    An anchor is a specified location on a Web page that serves as the destination of a link. Here are some guidelines to follow when creating anchors:

    • You shouldn't place anchors directly on a layout grid. Instead, place anchors in the flow of HTML text, a layout text box, or a table cell. When you add an anchor to a layout text box or table cell, make sure that the box or cell has other contents, otherwise the anchor will not be recognized by Netscape Navigator. To work around this problem, you can add a nonbreaking space to the empty box or cell. To add a nonbreaking space, click inside the box or cell, and press Shift+spacebar (Windows) or Option+spacebar (Mac OS).
    • You should place anchors near the left margin of the page, so that the anchors work more consistently across browsers.
    • You won't be able to preview certain link and anchor combinations in Layout Preview.
    • You should test links to anchors extensively in browsers before publishing your Web site. Anchors don't always work the same way in Netscape Navigator and Microsoft Internet Explorer.

To create an anchor:

    Do one of the following:

    • Drag the Anchor icon from the Basic set of icons in the Objects palette to the destination on the page where you want the anchor.
    • Select a link on the page, drag from the Point and Shoot button Point and Shoot button in the Inspector to a location on the page or another open page where you want to place the anchor, and release the mouse button.

    Note: You must save the destination page before you can create an anchor using the Point and Shoot button.

To give an anchor a unique name:

    Select the anchor marker Anchor icon in the page and type a new name in the Anchor Inspector.

    Tip iconYou can see a list of all the anchors on a page by clicking the triangle next to the page in the Files tab in the site window.