Anchors links and buttons

I am building a reservation button for a webpage which links to a page.
I want to know if is a good practice to add something like for example :
<a href : " # "> Make a Reservation or if is better to style the anchor tag to make it look as a button.

Hi @raquetica,

The general rule is to use <a href="#"></a> if you are going to leave a page to go to a different page or a link outside of your websites ecosystem and to use <button>Add to cart</button> for interactive elements like adding an item to a shopping cart.

Hope this helps,


1 Like