Code
Execute
<!DOCTYPE html> <html> <body> <form action="form-tag-in-html.html" onsubmit="alert('Submitted!');return false;"> <label for="First name"> First Name: </label><br> <input type="text" name="name"><br> <label for="Second name">Second Name: </label><br> <input type="text" name="name"><br> <input type="submit" value="Submit"> </form> </body> </html>
Result