html button with link

HTML
<!-- if you are on Window : --> 
<button onclick="window.location.href='page2.html'">
  Button
</button>

<!-- if you are on linux or macOS : -->
<button onclick="location.href='page2.html'">
  Button
</button><a href="https://google.com" class="btn btn-primary">Go to Google</a><button><a href='https://google.com' alt='Broken Link'>This is a button</a></button><form action="https://google.com">
    <input type="submit" value="Go to Google" />
</form><button onclick="window.location.href='/page2'">Continue</button><button 
  onclick="document.location='default.asp'">HTML Tutorial</button>
 
Source

Also in HTML: