href on a button

<button><a href='https://google.com' alt='Broken Link'>This is a button</a></button><button onclick="window.location.href='/page2'">Continue</button><form method="get" action="/page2">
    <button type="submit">Continue</button>
</form><!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>