HTML CSS JS

HOW TO SET HTML BUTTONS AS LINKS

JAVASCRIPT REDIRECT

<button onclick="location= 'http://site.com'">   BUTTON LINK </button>

1

SUBMIT FORM

<form action="http://site.com">   <input type="submit" value="GO"/> </form>

2

FORM ACTION

<form action="http://site.com">   <input type="submit" value="GO"/>   <input type="submit"       value="ANOTHER SITE"       formaction="http://sitez.com/"/> </form>

3

WRAP BUTTON IN LINK

<a href="http://site.com">  <button>Go to Site</button> </a>

4

CSS BUTTON

THE CSS <style> .linkbtn {  display: inline-block; padding: 10px;  margin: 5px; background: #8a110b;  color: #fff; text-decoration: none; } </style>   THE HTML <a class="linkbtn" href="http://site.com">  Looks like button, but is a link. </a>

5