Every <a> element must have a non-empty href attribute to function as a link and be keyboard-focusable.
<a href="/learn-more">Learn more</a><a>Learn more</a>When: An anchor tag lacks an href or it is blank
Warning: <a> tag missing non-empty href attribute
Solution: Add a valid href value
Accessibility: Anchors without href are skipped in focus navigation and not announced as links :contentReference[oaicite:10]{index=10}.
SEO: Search engines only index <a> elements with href, so missing href undermines discoverability.
Prevent misusing <a> tags as non-link elements, maintaining both accessibility and semantic correctness.
WCAG G203: Ensure <a> elements have an href attribute per WCAG 2.4.4.axe-core rule: href-no-hash: Disallow anchors without valid URIs or URL fragments.The href attribute on <a> defines the hypertext link; without it, the element does not represent a hyperlink.