How do I disable links?
Disable a link #
It is still possible to disable a link by following 3 steps: remove the href attribute so that it can no longer receive the focus. add a role="link" so that it is always considered a link by screen readers. add an attribute aria-disabled="true" so that it is indicated as being disabled.
How to remove hyperlink in CSS?
Answer: Use the CSS pointer-events Property
You can simply use the CSS pointer-events property to disable a link. The none value of this property specify the element is never the target of pointer events.