Rule of thumb: Always tell a visitor what to expect when selecting a link.
The link opens in a new window or tab
Opening a link in a new window or tab unexpectedly can disorient users. It also breaks the “back button”. The best practice is to let the user decide if she wants to open a link in a new tab or window.
Not all screen readers alert users when a new window or tab has opened and for those with cognitive disabilities, they may have trouble interpreting what’s happened.
This can be prevented by not checking “open link in a new target” on links so they don’t trigger new windows or tabs to open.
But what if you insist?
If you absolutely need to open a link in a new window, you need to tell your visitor in the link text. For example:
I love cats, so I watchĀ cat videos (will open in a new window) on YouTube.
Link to a document
If the link opens a document, add the format of the document in the link text. For example:
You can download the manual as PDF.
Avoid the title attribute on links
You should not use the title attribute on links, because the title attribute is only available for sighted users on desktop using a mouse. Other users will miss that information. In addition, screen readers announce the title attribute inconsistently. You must be sure that all users get the information they need and the title attribute doesnāt provide that.
Resources
- HTML5 Accessibility Chops: title attribute use and abuse by Steve Faulkner
- Don’t rely on the title attribute for accessibility
- (Don’t) Open Links in a New Window by Cory LaViska
- Should Links Open In New Windows? by Vitaly Friedman
- When to use target=ā_blankā by Chris Coyier