Open In App

HTML | <input type=”submit”>

Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <input type=”submit”> is used to define a submit button. It is used to submit all the user value to the form handler. The Form Handler is a server page that activates a script for processing all the input values. 

Syntax: 

<input type="submit"> 

Example: 

html




<!DOCTYPE html>
<html>
 
<head>
    <title>
        HTML Input Type submit
    </title>
</head>
<style>
    #Geek_p {
        font-size: 30px;
        color: green;
    }
</style>
 
<body style="text-align:center;">
 
    <h1 style="color:green;">
            GeeksForGeeks
        </h1>
 
    <h2>HTML &lt;Input Type="submit"&gt;
</h2>
    <form>
        Name:
        <input type="text">
        <br>
        <br> Password:
        <input type="password">
        <br>
        <br>
 
        <input type="submit">
    </form>
</body>
 
</html>


Output:

  

Supported Browsers:

  • Google Chrome 1 and above
  • Firefox 1 and above
  • Edge 12 and above
  • Internet Explorer
  • Opera
  • Apple Safari 1 and above

Last Updated : 22 Jul, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads