Quick answer

Links with empty href (or # with no purpose) can confuse users and validators.

HTML Empty href

Links with empty href (or # with no purpose) can confuse users and validators.

Common causes

How to fix

FAQ

Is href="" valid?
Valid but often wrong.
Link for button action?
Use <button> or role="button".

Fix it now

Try in validator (prefill this example)

Related

All tools · Canonical