Make a HTML Link Button

This article will show you how to make a HTML link button. It behaves similar to a normal hyperlink, but instead, it's a button.

Steps

  1. Open up your HTML file with your preferred text editor such as Notepad or TextEdit.
  2. Add the following code to the area where you want the button to appear.

    <form method="get" action="https://www.wikihow.com/Main-Page"><button type="submit">Homepage</button></form>
  3. Change the link. Currently the code points to wikiHow's homepage. Replace it with the URL of the page you wish to link to.
  4. Change the button text. Currently the button says "Homepage". You can change it to what ever you would like it to say.
  5. Test out the link. Left click the link to make sure it works. If it works, then you're done. If the button does not, you should check your code for mistakes.

Things You'll Need

  • Text editor

Related Articles