How do I create an HTML button that acts like a link?

Created by BalusCLinked to 11.5m issues across 286 teams

tl;dr

You can create an HTML button that acts like a link by using the <a> tag. The <a> tag is used to create a link to another page or website. To make the button look like a link, you can add a class attribute to the <a> tag and set it to btn.

<a href="http://example.com" class="btn">Link Button</a>

This will create a button that looks like a link and will take the user to the specified URL when clicked. You can style the button .btn class however you'd like.