Open In App
Related Articles

HTML | <input type=”reset”>

Improve Article
Improve
Save Article
Save
Like Article
Like

The HTML <input type=”reset”> is used to defines a reset button. The reset button is used to reset all the form values to its initial values. 

Syntax: 

<input type="reset">> 

Example: 

HTML




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

Output:

 

Supported Browsers:

  • Google Chrome 1 and above
  • Firefox 1 and above
  • Edge 12 and above
  • Opera
  • Internet Explorer
  • Apple Safari 1 and above
Last Updated : 02 Jun, 2022
Like Article
Save Article
Similar Reads
Related Tutorials