html how to link to another page code example
Example 1: html link
<a href="https://www.google.com/">Link to google</a>
Example 2: how to make links in html
<a href="link.html"> text link </a> <!-- link to html -->
<a href="google.com" URL> Google </a> <!-- link to site -->
<a href="link.html"><button> Link </button></a> <!-- Button link -->
Example 3: a href to other site
<a href="https://examplesite.com" target="_blank" rel="noopener noreferrer">
Example Link
</a>
Example 4: html button with link
<form action="https://google.com">
<input type="submit" value="Go to Google" />
</form>
Example 5: link in html
<a href="./Your/link/to/the/page">Your text</a>