Allows you to link to specific parts of a page.

Anchors are used to enable links to a specific location on a page. Anchor links can be especially useful when navigating between sections of a long document, or when you want to link to a segment of a page instead of the top of the page.

Anchors are invisible to the reader when the page is displayed.

There are two steps to using an anchor:

  1. Create an anchor on the page.
  2. Create a link to the anchor.

Creating an anchor

Use the Anchor macro to mark the location you want to link to.

  1. Add the Anchor macro to a page.
  2. Specify the name of your anchor. For example, 'bottom' or 'important information'. See the 'Anchor Name' parameter described below.

On this page:

Related pages:

Macro options (parameters)

Parameter

Default

Description

Anchor Name

None

This is the anchor name that you will use when creating the link.

  • The anchor name can include spaces. Confluence will remove the spaces automatically when building a URL that points to this anchor.
  • The anchor name is case sensitive. You must use the same pattern of upper and lower case letters when creating the link as you used when creating the Anchor macro.

Creating a link to an anchor

You can link to an anchor from:

To link to an anchor from within the same Confluence site:

  1. Select some text or position your cursor where you want to insert the link.
  2. Choose Link on the toolbar or press Ctrl+K.
  3. Choose Advanced and enter the anchor name in the Link field following the format below.

    Anchor locationLink syntax for anchorExamples
    Same page#anchor name

    #bottom

    #important information

    Page in same spacepage name#anchor name

    My page#bottom

    My page#important information

    Page in different spacespacekey:page name#anchor name

    DOC:My page#bottom

    DOC:My page#important information

    The anchor name is case sensitive. You must use the same pattern of upper and lower case letters as you used when creating the Anchor macro. 

  4. Enter or modify the Link Text - this is the text that will appear on the page. If this field is left blank, the page name or URL will be used as the link text..
  5. Choose Insert.

Screenshot: The 'Advanced' option in the link dialog

To link to an anchor from another web page or another Confluence site:

Use a full URL in the following format:

Link syntax

Examples

http://myconfluence.com/display/spacekey/pagename#pagename-anchorname

http://myconfluence.com/display/DOCS/My+page#Mypage-bottom

http://myconfluence.com/display/DOCS/My+page#Mypage-importantinformation

Notes about the full URL:

Code examples

See:

Notes