📝How to: disable <a> link

tags

#how-to

source

Disabling a link | scottohara.me

disabled attribute is not supported on a element.

To disable a link, remove href, set role to link (for screen readers to recognize the link), set aria-disabled to true.

<a role="link" aria-disabled="true">...</a>