I'm styling links as buttons, and have noticed that the link action is overridden by the form action. So a cancel button actually updates. Is there a way to remove this behaviour easily and reliably(across all browsers) from the button, while keeping it inside the form element? Or do I need to restyle the buttons?
update:
<form>
<input type='text'>
<a href="cancel"><button>cancel</button></a>
<input type="submit">
</form>
right now the a>button
has the same action as input(submit)
ended up restyling and removing the button
tags