Check out example codes for "button href". It will help you in understanding the concepts better.

Code Example 1

<!DOCTYPE html>
<html>
   <head>
      <title>Title of the document</title>
   </head>
   <body>
      <form>
         <input type="button" onclick="window.location.href = 'https://www.w3docs.com';" value="w3docs"/>
      </form>
   </body>
</html>

Code Example 2

<button onclick="window.location.href='/page2'">Continue</button>

Code Example 3

<a href="https://google.com" class="button">Go to Google</a> //*button link *//

Code Example 4

<a href="https://google.com" class="btn btn-primary">Go to Google</a>

Code Example 5

a.button {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    color: initial;
}

Code Example 6

<button><a href='https://google.com' alt='Broken Link'>This is a button</a></button>

Learn ReactJs, React Native from akashmittal.com