How to Make an HTML Button to Redirect to a Web Page

Creating an HTML button that redirects to another page is built into HTML code. Using the tags for forms you can create buttons that go to any page you would like. The buttons will be generated by the browser you are using, but will use the custom text that you will put in the code. When visitors to your website click on the button it will take them to another page just like regular HTML links.

Things You'll Need

  • Text editor
  • HTML file
Show More

Instructions

    • 1

      Open the HTML file in your text editor by clicking on "File" and "Open." Choose your file from the list.

    • 2

      Add the following code to your page:

      <FORM METHOD="LINK" ACTION="yours.html">
      <INPUT TYPE="submit" VALUE="HTML Button">
      </FORM>

    • 3

      Edit the code to suit your needs. Change the ACTION to the web url you want the button to go. Change the VALUE to what you want the button to say. So if you want the button to go to ha.html and the button to say "Make me laugh" you would do the following:

      <FORM METHOD="LINK" ACTION="ha.html">
      <INPUT TYPE="submit" VALUE="Make me laugh">
      </FORM>

    • 4

      Save your file.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured