The following link rules are based on accessibility and usability principles.
Links are one of the fundamental elements that make up our online experiences. They have been a feature of the web since the beginning and are what makes the web the web. In a well-designed website, all links should be part of the journey that guides the users towards specific actions. This includes links that:
It is important to be aware that:
Read a summary about the link component.
Understand how to link to non-HTML resources.
Imagine you removed all the links on a page and listed them separately from the content. Would a user know where each of the links will lead them? Links that are not clear are bad for accessibility, usability and search engine optimisation. They should always provide obvious direction for users. Read the linked text out loud for each of your links. Would someone understand what content you are linking to, based on the linked words spoken?
Search engines, including Google, also consider meaningful link text in their ranking algorithms. A link to ‘sepsis training’ helps the page score better for the words ‘sepsis training’.
Use:
Avoid:
Make it quick and easy for users to scan your links. They should have at least one word, but two words is more helpful.
People mostly look at the first two words of a link. A link that is just a letter or symbol makes it difficult for users to click on and do not provide context.
Use:
Avoid:
Links with different destination URLs must have unique link names. When links that point to different URLs have the same link text or description, screen reader users may be unable to work out which one links them to the information they want.
Use:
Avoid:
Write sentences so links are at the end. This will make links easier to spot because users will see them as soon as they finish reading the sentence. Users can then click the link immediately, instead of having to re-read the sentence to find it.
Use:
Avoid:
Links should not describe a physical action such as ‘click’. This verb focuses on the mechanics of using a mouse, which is not necessarily how your user will interact with your links. The word ‘here’ is also vague and doesn’t provide a clear description of where the link will take the user.
Use:
Avoid:
Adding the word ‘link’ within a link is redundant information for all users. The link should be styled clearly and does not need the word ‘link’ to describe its function. Screen readers say the word ‘link’ before all links, so using the word 'link' will make the experience very repetitive.
Use:
Avoid:
Using a web page address or URL as a link is difficult to read and will slow readers down. Users of adaptive technologies must listen while their screen reader reads out every single character of a web page address. This will give these users a poor experience of the website.
Use:
Avoid:
Links to email addresses should be written in full, otherwise, it will not be clear that the link is an email address.
Use:
Email: nes.ux@nhs.net
Avoid:
Email: NES UX
Generally, we recommend opening links in the same tab. Usability research carried out by NES has found opening links in new tabs can be disorientating.
If you have a good reason for opening a link in a new tab, warn the user this will happen. You can do this by adding '(link opens in new window)' text within the link. You might want to open the link in a new tab or window if:
Our guidance on best practice for HTML links is based on extensive research. To gain a greater understanding of best practice in more detail have a read through these references:
W3
2.4.4 Link Purpose (In Context) Level A
W3
Understanding Success Criterion 2.4.4: Link Purpose (In Context)
W3
How to meet 2.4.4 Link purpose (in context)
18F Accessibility Guide
Links and repetitive content
AG Consult
Meaningful links: a must
NN/g Nielsen Norman Group
Writing Hyperlinks: Salient, Descriptive, Start with Keyword
NN/g Nielsen Norman Group
First 2 Words: A Signal for the Scanning Eye
W3
WCAG 2.1 Link purpose in context
Functional accessibility evaluator
Link text must be unique
Smashing Magazine
Why your links should never say “Click here”
W3C Quality Assurance
Don’t use “click here as link text”
W3C Style
Sitepoint
Making Accessible Links: 15 Golden Rules For Developers
Accessible U
Hyperlinks
MDN web docs
Creating Hyperlinks
Seibert Media
Why Mailto Links Should Be Avoided On Websites
Content Design London
Readability guidelines for creating links
W3 Org
Supplementing link text with the title attribute
TPGi
HTML5 Accessibility Chops: title attribute use and abuse
Search Engine Journal
How to Use Link TITLE Attribute Correctly
Accessible U
Links