button in html to link to another page code example
Example 1: hyperlink html
<a href="url">link text</a>
Example 2: html button with link
<a href="https://www.google.com">
<button>Go to Google</button>
</a>
Example 3: html links
<a href="url"> Some text... </a>
<a href="path to de file"> Some text... </a>
<h1 id="some id"> Title </h1>
<a href="#some id"> Some text... </a>
<a href="url">
<img src="path to image" alt="" style="width:42px;height:42px;">
</a>
Example 4: how to link a button to another page in css
<button onclick="window.location.href='/page2'">Continue</button>