href value for null links

html, javascript

Solution

Better be `#` because some browsers won't render `<a>` with empty `href`(for example Google chrome will render the anchor as a plain text).

Problem

If I'm using an `<a>` tag click event to trigger an ajax call, and I don't want the link to physically go anywhere, what is the correct value for the `href` attribute? Is it '#' or just leave it empty? (I understand the accessibility issues that this brings).

Original source

Related problems