Blog › HTML · Published 2026-11-26

How to make an HTML button that acts like a link

The simplest and most accessible option is a normal link styled with CSS:

<a href="/page" class="btn">Go</a>

Links can be opened in a new tab, copied and crawled by search engines. If you still need a button element:

<button type="button" onclick="location.href='/page'">Go</button>

Use a button for actions (submit, open a menu) and a link for navigation.

Official sources

Need help with your project?
We build websites, systems and automation. Start your project WhatsApp

All articles