I am playing with the Buttons in the w3schools Tryit editor, and I am trying to figure out how to make my browser redirect to an URL when I click on the \"Cancel\" button.
Just put type="button"
Cancel
Because your button is inside a form it is taking default value as submit and type="cancel" doesn't exist.