Link to a Named Anchor on a Web Page

November 11th, 2005

Linking to a named anchor lets you link to a specific place on a page.

Linking to a named anchor requires two steps: (1) Create the anchor. (2) Link to it.

To create an anchor on a page:

  1. Click into the page where you want the anchor to appear.
  2. From the Common category on the Insert bar, click the Named Anchor button (or select Insert | Named Anchor from the menus):
  3. Named Anchor

  4. Dreamweaver will place an anchor icon in the document. (The icon will not be visible when the page is viewed in a browser.)

To link to a named anchor on the same page:

  1. Select text or an image.
  2. Click into the Link field in the Property Inspector and type the name of the anchor, preceded by the pound sign (#). The sample below links to the heading3 anchor on the same page:
  3. Link to a Named Anchor on the Same Page

To link to a named anchor on a different page:

  1. Select text or an image.
  2. Click into the Link field in the Property Inspector and type the name of the file followed by a pound sign (#) and the named anchor. The sample below links to the heading3 anchor on the products1.htm page:
  3. Link to a Named Anchor on Another Page

Leave a Reply

You must be logged in to post a comment.