Skip to content
Related Articles

Related Articles

HTML | <input type=”reset”>
  • Last Updated : 29 May, 2019

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:




<!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
  • Firefox
  • Edge
  • Opera
  • Apple Safari



My Personal Notes arrow_drop_up
Recommended Articles
Page :