Avoid setting generic link text like, "Click here", "Read more", and "Learn more" which do not make sense when read out of context.
Screen reader users often tab through links on a page to quickly find content without needing to listen to the full page. When link text does not clearly describe the actual linked content, it becomes difficult to quickly identify whether it's worth following the link.
Ensure that your link text is descriptive and the purpose of the link is clear even when read without the context provided by surrounding text.
Learn more about how to write descriptive link text at Access Guide: Write descriptive link text.
Note: For now, this rule only flags inline markdown implementation of links given the complexities of determining the accessible name of an HTML anchor tag,
You can configure additional link texts to flag by setting the rule configuration like the following:
{
"no-generic-link-text": {
"additional_banned_texts": ["Something", "Go here"]
}
}
Go [here](https://github.com/)
[Learn more](https://docs.github.com)
[Click here](https://github.com/new) to create a new repository.
[GitHub](https://github.com/)
[GitHub Docs](https://docs.github.com)
[Create a new repository](https://github.com/new)