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

Code Example 1

<!DOCTYPE html>
      <title>Title of the document</title>
         <input type="button" onclick="window.location.href = '';" value="w3docs"/>

Code Example 2

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

Code Example 3

<a href="" class="button">Go to Google</a> //*button link *//

Code Example 4

<a href="" 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='' alt='Broken Link'>This is a button</a></button>

Learn ReactJs, React Native from