DEV Community

Your Average Roblox Game Dev
Your Average Roblox Game Dev

Posted on

How to make a button open a different page when clicked in html.

step 1 - * Open up your coding software.
step 2 - Create a new html file.
step 3 - Put in the following code below -

<html>
   <body>
      <a href="Your_Link_Here" <!-- make sure to put https:/ -->
         <button>Your Text Here</button>
      </a>
   </body>
</html>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Instrument, monitor, fix: a hands-on debugging session

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️