Is it OK to have a link that looks like a button?

Question

I come across a long of links that look like buttons. Is this OK from an accessibility standpoint? 

Answer

Yes, it is OK to use links that look like buttons. With modern HTML & design practices, it is very common to have links that look like buttons (you can even do the opposite and make link elements function as buttons).

If you are using an anchor element (<a href=”URL”>), you do not need to do anything other than provide an aria-label if there isn’t text within the link element. If you are using a <button> element, that element will need to have the role=”link” attribute so that assistive technologies know that the element functions as a link and not a button.

Need help monitoring your website for accessibility issues?

Perform up to 10,000 free accessibility scans with a trial of Accessible Web Console.