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
- href="" or href="#".
- JavaScript-only link with no href.
How to fix
- Use href with real URL or use <button> for actions.
- Avoid href="#" for click handlers; use button.
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)