Nesting <a> inside <button> doesn't work in Firefox

firefox, html

Solution

To make it work in all browser, Firefox too you have to change it to

<a href="#"><button class="btn"></button></a>

or as suggested by Billy Moat in case of bootstrap there was no need of `<button>` you could just do

<a href="#" class="btn">GO</a>

Problem

I have a `<button>` with a hyperlink tag inside, looks like this: ``` <button class="btn"><a href="#"></a></button> ``` This works well in Chrome and Safari, BUT doesn't work in Firefox (ver 20 tested). What's wrong?

Original source

Related problems