Skip to content
Related Articles

Related Articles

HTML | <input type=”submit”>

View Discussion
Improve Article
Save Article
  • Last Updated : 22 Jul, 2022

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
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!