How do you make a link act like a button?
Use the action or formaction attribute.
Another way of creating a button that acts like a link is using the action or formaction attribute within the <form> element.
Can a link used as a button?
Answer. Yes, it is OK to use links that look like buttons, but it is highly encouraged to use the native elements if possible. If necessary you can have links that look like buttons and you can even do the opposite and make link elements function as buttons.