href on a button
snippet in html

html button link

user4246

<button><a href='https://google.com' alt='Broken Link'>This is a button</a></button>

href on a button

user8658

<button onclick="window.location.href='/page2'">Continue</button>

add link behind a button in html

user2130

<!DOCTYPE html>
<html>
   <head>
      <title>Title of the document</title>
   </head>
   <body>
      <form>
         <input type="button" onclick="window.location.href = 'https://www.w3docs.com';" value="w3docs"/>
      </form>
   </body>
</html>

html button with href

user5459

<form method="get" action="/page2">
    <button type="submit">Continue</button>
</form>