You have an <a> element inside a <button> element. That means you did something like this:
This creates the html structure:
Which is invalid HTML5. That it works at all in any browser is just because some browsers are more tolerant of malformed html than others, but it is incorrect, and isn't officially supported by any browser.