how to connect button with anchor html code example
Example: button as href
<button onclick="location.href='http://www.example.com'" type="button">
www.example.com</button>
<button onclick="location.href='http://www.example.com'" type="button">
www.example.com</button>