Download ArticleDownload Article

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.

  1. How.com.vn English: Step 1 Open up your HTML file with your preferred text editor such as Notepad or TextEdit.
  2. How.com.vn English: Step 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">Home Page</button></form>
    Advertisement
  3. How.com.vn English: Step 3 Change the link.
    Currently the code points to How.com.vn's homepage. Replace it with the URL of the page you wish to link to.
  4. How.com.vn English: Step 4 Change the button text.
    Currently the button says "Homepage". You can change it to what ever you would like it to say.
  5. How.com.vn English: Step 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.
  6. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How I create a button like Merch that takes people to another page?
    How.com.vn English: Community Answer
    Community Answer
    Follow the steps in the article, but change the text of the button and the link to whatever you need.
  • Question
    How do I create a button on an HTML page?
    How.com.vn English: Community Answer
    Community Answer
    Type: button text. It should work.
  • Question
    Is there a way for the button to send more than one link?
    How.com.vn English: Community Answer
    Community Answer
    No, a button can only do one job. Think of a volume switch on a phone. You can't get that button to turn the volume up, and turn the phone on, and make a call, all at once. The button can only have one job. Add more buttons as needed.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      Things You'll Need

      • Text editor

      About This Article

      Tested by:
      How.com.vn Technology Team
      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 14 people, some anonymous, worked to edit and improve it over time. This article has been viewed 140,619 times.
      How helpful is this?
      Co-authors: 14
      Updated: May 25, 2022
      Views: 140,619
      Thanks to all authors for creating a page that has been read 140,619 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement