Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Make HTML Button Act Like a Link</title> <style> form { /* To keep the form in flow with the surrounding text */ display: inline; } </style> </head> <body> <form action="https://www.google.com/"> <input type="submit" value="Go to Google"> </form> <p><strong>Note:</strong> Open the output of this example in a blank tab (click the arrow next to "Show Output" button) and then click the "Go to Google" button.</p> </body> </html>