I would like to create an HTML button that acts like a link. So, when you click the button, it redirects to a page. I would like it to be as accessible as possible.
As of HTML5, buttons support the formaction
attribute. Best of all, no Javascript or trickery is needed.
Caveats
tags.
type must be "submit" (or unspecified), I couldn't get it working with type "button." Which brings up point below.Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formaction Browser Support: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Browser_compatibility