Skip to content

Google empty / limited href flag

Issue Description

Google doesn’t seem to like the use of ‘href=”#”‘ as it isn’t quite a link and isn’t quite not a link.

From an HTML validation side, using ‘#’ is completely valid and, from an accessibility site, the link will be treat and read as a standard link.

Looking around online it seems like the most sensible solution is to use a button element in place of a link that alters the page the user is currently on. This way, Google will see the button and treat it as such from a validation and accessibility stand point, even if the button is styled to look like a text link.

Ideally, all links would look like links and all buttons like buttons, but that’s not always the case. This seems like the best solution and therefore is the recommended approach until we can find evidence of a better / alternative solution.

Affected Browsers

  • all

Issue Type

Back to Issues List