How to create an HTML button that acts like a link

HTML The plain HTML way is to put it in a <form> wherein you specify the desired target URL in the action attribute. If necessary, set CSS display: inline; on the form to keep it in the flow with the surrounding text. Instead of <input type=”submit”> in above example, you can also use <button type=”submit”>. The only difference is that the <button> element allows children. You’d … Read more