Linking and Navigation > Creating links > Linking to a specific place within a document |
Linking to a specific place within a document
You can use the Property inspector to link to a particular section of a document by first creating named anchors. Named anchors let you set markers in a document and are often placed at a specific topic or at the top of a document. You can then create links to these named anchors, which quickly take your visitor to the specified position.
Creating a link to a named anchor is a two-step process. First, create a named anchor, then create a link to the named anchor.
To create a named anchor:
1 | In the Document window's Design view, place the insertion point where you want the named anchor. |
2 | Do one of the following: |
Choose Insert > Invisible Tags > Named Anchor. | |
Press Control+Alt+A (Windows) or Command+Option+A (Macintosh). | |
In the Invisibles category of the Objects panel, click the Named Anchor button. | |
3 | In the Anchor Name field of the Insert Named Anchor dialog box, type a name for the anchor. |
If an anchor marker doesn't appear at the insertion point location, choose View > Visual Aids > Invisible Elements. | |
Note: Anchor names cannot contain spaces and should not be placed inside a layer.
To link to a named anchor:
1 | In the Document window's Design view, select text or an image to create a link from. |
2 | In the Link field of the Property inspector, type a number sign (#) and the name of the anchor. For example: |
To link to an anchor named "top" in the current document, type #top. | |
To link to an anchor named "top" in a different document in the same folder, type filename.html#top. | |
Note: Anchor names are case sensitive.
To link to a named anchor using the point-to-file method:
1 | Open the document containing the named anchor you want. |
2 | Choose View > Visual Aids > Invisible Elements to make the anchor visible. |
3 | In the Document window's Design view, select text or an image you want to link from. (If this is another open document, you must switch to it.) |
4 | Do one of the following: |
Click the Point-to-File icon to the right of the Link field in the Property inspector and drag it to the anchor you want to link to: either an anchor within the same document or an anchor in another open document. | |
Shift-drag in the Document window from the selected text or image to the anchor you want to link to: either an anchor within the same document or an anchor in another open document. | |