Skip to content
Related Articles

Related Articles

Improve Article

HTML | <input type=”reset”>

  • Last Updated : 11 Jun, 2021

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

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.




My Personal Notes arrow_drop_up
Recommended Articles
Page :