Web Accessibility Training

Links

Advisory

The information on this page is only applicable if you're editing the University webpages using T4. It presumes that you have already completed the beginners and advanced level of the T4 basic training (a link for staff only - opens in new window).

Parts of a link

A link has two main parts:

Link content
The clickable element that's displayed on the page. This may be:
  • text (known as link text)
  • an image
  • an entire component containing text, images or both, such as a carousel or panel.
Link destination
The location that the link points to. This is not normally displayed on the page but is stored in the underlying code. It may be:
  • a webpage
  • a pop-up window (also known as a modal)
  • a document
  • a specific location on a page
  • an email address
  • a telephone number

Basic link editing principles

Principles listed under requirements must always be prioritised. Those listed as best practice should also be followed wherever possible.

Requirements

Legal compliance

The destination or purpose of a link must be clear from the link text together with its surrounding:
  • sentence;
  • paragraph;
  • list item;
    or
  • table cell, together with any associated row or column header cells

Example

Consider the following:

The first link, 'our research', identifies the subject without relying on the surrounding text, so it meets the legal accessibility requirement.

The second link, 'here', does not make sense when read on its own. However, its surrounding list item makes its purpose clear, so this link also meets the legal accessibility requirement.

The third link does not meet the legal accessibility requirement, because its own list item doesn't explain what 'here' refers to. A heading above the list, or information in an earlier list item, would not change this because they would fall outside the scope of permitted context for this link.

Paragraph context

The paragraph limit is strict. A link saying 'read more' that immediately follows a paragraph of text would not meet the legal accessibility requirement. Although the link appears directly after the relevant information, it falls outside that paragraph, and 'read more' does not provide sufficient information on its own.

Technical note for advanced editors

The paragraph limit refers to the underlying paragraph markup, that is, all text between <p> and its corresponding </p>. A line break (<br/>) between those two tags does not create a new paragraph, so a link that follows it would remain within the same paragraph context.

If you present two or more related links together as a distinct group, rather than as part of a sentence, you must create a list and present each link as a separate list item.

Use a bulleted list unless the links need to be followed in a particular sequence or their position in the list is meaningful. In those cases, use a numbered list.

This method ensures that assistive technologies can recognise that the links belong together, which is an accessibility requirement when that relationship has been communicated visually.

Example

If these links occurred within a sentence, they wouldn't need to be presented as a bulleted list.


Options for advanced editors
In-page navigation styling

In the Panel template, create a bulleted list and add each link as a separate list item. Add the class menu to the <ul> tag.

Links styled as a row of buttons

In any template that has a content editing window, create a bulleted list and add each link as a separate list item. Add the class inline-button-list to the <ul> tag. No other class is needed.

An example of this type of list can be seen on the Undergraduate Degrees page.

Links styled as a row of links separated by pipes (|)

In any template that has a content editing window, create a bulleted list and add each link as a separate list item. Add the class inline-link-list to the <ul> tag. No other class is needed.

An example of this type of list can be seen on the Career Zone page.

Web editing policy

The button to underline text is not available in T4. If you know how to underline text by editing the code, do not add underlining this way, because:

  • underlining is an established way of identifying links online. Readers may mistake underlined ordinary text for a link that doesn't work;
  • T4 automatically applies our established styling to links, so you don't need to underline links yourself.

Best practice

When writing link text, use meaningful words that describe the link's destination or purpose instead of using the web address.

Example

Rather than using https://www.exeter.ac.uk as the link text, using University of Exeter or University of Exeter homepage.

Why?

A web address used as link text:

  • can be difficult to read or listen to, particularly when it's long;
  • some screen readers may announce parts of it letter-by-letter;
  • can make it harder for a search engine to understand how the linked page relates to your page.

Meaningful words provide clearer link text that is easier for a reader to recognise and find again.

When the address itself is useful

 Only use the web address in rare cases where displaying it would give readers useful information.

Example

A link that says accessibility statement for www.exeter.ac.uk includes the web address because it identifies the specific web domain covered by the statement. In this case, displaying the web address is more useful to readers and search engines than less specific link text such as 'accessibility statement for the University of Exeter website'.

Ideally, a link's destination or purpose should be clear without its immediate context. In other words, if the link text were taken out of its surrounding sentence, it would still make sense on its own.

This is particularly useful for people who use screen readers to hear the links on a page as a separate list. It can also help search engines understand how the linked page relates to your page.

For this reason, avoid using the following as links within a sentence, and never use them as standalone links (i.e. when not surrounded by other text).
  • here
  • click here
  • more
  • read more
  • find out more
  • further information
  • download

These phrases don't make sense when encountered without context. As a rule of thumb, ask: does the link include the subject? (i.e. 'Read more...' – about what?)

Example

Consider:

Both links meet the legal accessibility requirement because their purposes are clear within their surrounding list items.

However, the first link also follows best practice because 'our research' makes sense in isolation, while 'here' does not.

Best practice, not a universal rule

Sometimes it can be difficult to write a link that makes sense on its own without making the link unnecessarily long or the sentence awkward. In these cases, it's fine to rely on the link's considered context, as described in the Principle 1, 'A link's destination or purpose must be clear from its immediate context'.

Some screen readers allow users to hear the links on a page as a separate list. If identical link text is used for links with different destinations, the text alone will not distinguish one link from another.

Example

You may have one paragraph about Streatham Campus and another about St Luke's Campus. Within each paragraph, a 'campus facilities' link would meet the legal accessibility requirement where its purpose is clear from the surrounding paragraph.

If the page discussed only one campus, 'campus facilities' would also remain clear when heard separately from its paragraph, so there would be no need to make the link text more specific.

However, where the page includes two 'campus facilities' links with different destinations, the link text does not identify which one refers to Streatham Campus and which one refers to St Luke's Campus.

In that type of situation, use distinct link text such as:

  • facilities at Streatham Campus
  • facilities at St Luke's Campus

Essentially, make link text specific enough to distinguish its destination, but no more specific than the page requires.