We should be careful to use anchor macro, as it provides different ways in which anchor links can be added.
Anchors enable linking to specific locations on a page, and they can be especially useful for allowing readers to navigate to specific parts of a long document.
Anchors are invisible to the reader when the page is displayed.
As this is used to link to specific locations within a page, or inside different space in Confluence, it has to be added with the correct labeling location.
| Anchor location | Link syntax for anchor | Examples |
|---|---|---|
| Same page | #anchor name | #bottom #important information |
| Page in same space | page name#anchor name | My page#bottom My page#important information |
| Page in different space | spacekey:page name#anchor name | DOC:My page#bottom DOC:My page#important information |
Example of anchor defined with same page
Please refer to this official Confluence Wiki direct support article on usage of Anchor macro.
https://confluence.atlassian.com/doc/anchors-139442.html