html how to link a page to a button code example
Example 1: html button with link
<form action="https://google.com">
<input type="submit" value="Go to Google" />
</form>
Example 2: button as href
<button onclick="location.href='http://www.example.com'" type="button">
www.example.com</button>