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 all browsers.
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 the pick whip
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 pick whip.
To give an anchor a unique name: - Select the anchor marker
in the page. - In the Anchor Inspector, choose an option from the Name/ID menu (choose Name & ID for maximum browser compatibility), and then type a unique anchor name in the Name/ID text box.
You 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.
|