If I have the following simple code segment:
click me
&
If you don't want to use javascript to disable the anchor (as pruposed in other responses) you can just omit the href
attribute and the anchor wont work and will even change it's styling.
Note: I know my answer doesn't directly talk about the disable
attribute but the info might still be useful for the audiance, as it was for me.