Links

Overview

A link is a connection between digital documents that can be activated by using a mouse (clicking), keyboard, touch, voice command, or other assistive technology, allowing the reader to move easily from one document, section, or webpage to another. An effective embedded link is easily identifiable as a link and provides context and a descriptive anchor text (the phrase that can be activated) that tells readers where the link will take them. Descriptive links should be used anywhere links are embedded, including course sites, documents, emails, announcements, web pages, and other course materials. 

Rationale

An easily identifiable link indicates that there is an action that can be taken: activating the link to navigate elsewhere. A descriptive link tells users exactly where a hyperlink leads, allowing them to make informed decisions about whether to follow the link and what to expect when they get there. This can reduce time and effort for all users, but can be especially important for screen reader users. Screen readers can create a list of all links on a page, which separates the link from surrounding text/context. Using a descriptive link ensures that the purpose of the link is clear.

The Web Content Accessibility Guidelines (WCAG) 2.2 standard 2.4.4 requires that the purpose of a link is clear from context, while WCAG standard 2.4.9 recommends that the purpose of each link is clear from the link text alone. WCAG technique G201 recommends giving users advanced warning when a link opens in a new window. 

Guidance

Link anchor text should be informative, unique, and consistently formatted to clearly indicate that it is a link. 

Informative & Unique Description

The link anchor text is the text within a link text that can activated using a mouse (clicking), keyboard, voice command, or assistive device. 

Consider the difference between these two ways of presenting the same link: 

Although both links direct users to the same location, the first link is much easier to navigate. It  provides a clear description of what a user will find when they activate the link. The second link is difficult for sighted readers to parse, provides little meaningful information on the destination, and may be read aloud by assistive devices as a long sequence of letters, punctuation, numbers, and symbols (e.g. "h-t-t-p-s-colon-forward_slash-forward_slash...")

It is also common to use anchor text like "click here", "learn more", or "more information". Although more readable than the complete URL, these phrases provide little information on where the link leads. Many assistive devices allow users to access a list of links within a resource, presenting them separately from the surrounding text that might provide context on the purpose of the link.

For these reasons, link text should be self-contained and descriptive, providing enough information for users to understand where the link leads and decided whether or not to follow it. Link text should also be unique and distinguishable. When linking to multiple places, make sure that each link clearly differentiates where the link leads. 

Consistent Link Format

Although assistive devices are able to identify links through the underlying metadata, sighted users often rely on visual cues to know when text can be clicked or otherwise activated. Use consistent and distinct formatting to ensure that links are clearly identifiable. As it is best practice to not rely solely on colour to convey information (see the accessibility practice on Colours), it is a good idea to use a combination of colour and other formatting, such as underlining, to distinguish links from surrounding text. When choosing a link colour, ensure that it provides sufficient contrast with both the background and the main body text of the content.

Link Target

Depending on where your link leads, particularly if you are linking from one webpage to another, you may have the option to specific a link target. This determines whether the link will open in the same window/tab or a new window/tab.

Forcing a link to open in a new window/tab can be disorientating for users, particularly because the back button will not allow them to return to the previous page. Users navigate web content in different ways, including through mice, keyboards, voice control, or other tools, and opening links in new windows or tabs can disrupt their expected navigation patterns. Whenever possible, allow users to decide how they want to open links rather than making that decision for them.

If it is necesssary to have a link open in a new tab or window, for example when the link is in a form or multi-step process where navigating away will result in lost information, make sure that the descriptive texts indicates this behaviour. e.g. 

If the link opens or downloads a file, indicate that in the descriptive text as well. e.g. How to create links in Word for the web (PDF).

Recommendations

An icon with a check mark. Try

  • Using descriptive text that clearly explains where the link leads.
  • Ensuring that link text is unique on a page to differentiate between different URLs. 
  • Using the same link text when directing users to the same URL.
  • Using shortened URLs combined with QR codes when providing links in printed documents.  
  • Ensuring that links have clear and consistent formatting that differentiates them from non-linked text (e.g. blue and underlined).

An icon with an X mark. Avoid

  • Linking the URL text. 
  • Using "click here" or other vague text for links. 
  • Having links open in a new window, as this can create disorientation for navigation. 
  • Using only QR codes for sharing links. 
  • Forcing links to open in new windows/tabs.