Dead Link Anchors (empty, missing, or `href="#"`)
Anchors with empty, missing, or `href="#"` attributes appear as links but do not function, harming usability and accessibility.
By Seoxpert Editorial · Published
Why it matters
Dead link anchors confuse users and assistive technologies by appearing interactive but providing no navigation or action. This degrades user experience, accessibility, and can negatively affect SEO by signaling poor site quality.
Impact
Unresolved dead link anchors frustrate users, reduce accessibility, and may harm your site's SEO reputation.
How it's detected
Automated crawlers detect anchor (`<a>`) elements with empty, missing, or `href="#"` attributes.
Common causes
- Using `<a href="#">` for JavaScript actions instead of a button
- Leaving the `href` attribute empty or missing in templates
- Rendering anchors with unpopulated or undefined URL variables
- Using placeholder links during development and forgetting to update them
- Misunderstanding semantic HTML roles for links vs. buttons
How to fix it
Code examples
Problem: Anchor with href="#" for action
<a href="#" onclick="doSomething()">Click me</a>Fix: Use a button for actions
<button type="button" onclick="doSomething()">Click me</button>Problem: Anchor with empty href
<a href="">Home</a>Fix: Provide a real URL for navigation
<a href="/home">Home</a>FAQ
Why shouldn't I use `<a href="#">` for clickable actions?
Because it is not semantically correct, harms accessibility, and fails when JavaScript is unavailable. Use `<button>` for actions instead.
Do empty or missing href attributes affect SEO?
Yes, they can signal poor site quality and harm accessibility, which indirectly impacts SEO.
What should I do if a link is only a placeholder?
Remove the anchor or replace it with non-interactive text until a real destination is available.
Can I use JavaScript to fix dead link anchors?
Relying solely on JavaScript is risky; use semantic HTML elements to ensure functionality even if JS fails.
Found this issue on your site?
Run a scan to see if Dead Link Anchors (empty, missing, or `href="#"`) affects your pages.
Scan my website →