Ambiguous link text can make people uncertain about what will happen if they click a link. This uncertainty can be made worse if there is no programmatically determined link context available for assistive technology to help clarify what the link may be about (e.g. additional information about the link that exists in the same sentence, same paragraph tag, list item, or table cell).
How to Fix
- Ensure that the purpose of each link can be understood from the text alone or from the link paired with its programmatic context (e.g. text that is in the same sentence, same paragraph tag, list item, or table cell).
- Ensure that any linked images have alternative text which describes the purpose of the link.
- Try to place any programmatic context before the link, so that screen-readers read the context before they read the link.
Things to Avoid
- Do not put the description for a link in content that is not programmatically related to the link. For example, the following code would incorrectly place the link in a separate paragraph element, which is programmatically unrelated to the information about the link. <p>Information about the link</p><p><a href="#">Link</a></p>