As with most HTML-based content, Message Designer lets you to add anchor tags (also called anchor links) within the content of a message and then create a hyperlink to it elsewhere in the message.
TIP: An anchor tag can be associated with, for example, a word or a block of text — anything within the content that you want to link to.
After adding an anchor tag, you then create a link (e.g., a table of contents) that points directly to that anchor; this makes it easy for your message recipients to access the "targeted" content by simply clicking the link.
NOTE: Some desktop and mobile email clients do not support anchor tag functionality.
This article describes how to:
- add an anchor tag within your content (while creating or editing a message) and
- create a link to that tag elsewhere in the message.
Anchor tag notes
Before you use anchor tags, review the following.
- You can insert as many anchor tags as are necessary.
- Anchor tags must be unique in order to ensure that the link-click goes where intended.
- Anchor tags must be unbroken text strings; do not add spaces.
- Dashes and underscores are valid. (For easier readability, they are an excellent substitute for spaces.)
Anchor tag examples
- MyTargetAnchor is a valid anchor tag.
- My_Target-Anchor is a valid anchor tag.
- My Target Anchor is not a valid anchor tag.
Create an anchor tag
While creating or editing a message in Message Designer:
- Click to select the content box that houses the content that you want to link to.
- Click the Edit tab on the right of the content box.
- In the editor, position your cursor where you want to add the anchor tag, as shown below.
- Click the flag button in the toolbar.
- On the Anchor Properties popup, specify a name for your anchor tag and click OK.
This inserts a flag icon right in the message content indicating the location of an anchor tag.
EXAMPLE: The image below shows that two anchor tags have been inserted.
Create an anchor tag-based hyperlink
If there are anchor tags in your message, you can easily create a hyperlink, which, when clicked, will take your message recipients directly to the targeted content.
In the "create" example in this section, we'll link each "Paragraph n" to the respective paragraph in the message by linking to the anchor tags that have been inserted at the start of each paragraph. (For simplicity, the anchor tags are Anchor_1 through Anchor_4.)
To create a link to an anchor tag in the message content:
- In your message, select the text that will become a hyperlink (e.g., "Paragraph 1").
- Click the link button in the toolbar.
- On the Edit Link dialog:
-
- Click the Link Type dropdown and select Anchor Tag.
- Click the Anchor dropdown and select the anchor tag that you want this hyperlink to target (e.g., Anchor_1).
- The Link Text field is prepopulated with the selected text; leave it as is, and you can bypass the other settings.
- Scroll down and click OK.
The "Paragraph 1" text is a hyperlink to the first paragraph:
Repeat these steps for any other hyperlinks in your message.
Finished product: A message with multiple hyperlinks
The image below shows the above example message but now with all four "table of contents" entries linked to the respective paragraphs in the message.
It's a good idea to send a test message to yourself or to a colleague in order to test the functionality of the links before sending the message to your contacts.