1. Computing

Discuss in my forum

<input type="reset">

By , About.com Guide

INPUT Reset Description:

The reset INPUT tag sets the form back to its initial state when the form was loaded. In most forms this means that it clears the contents of the form, but if the form started out with pre-loaded contents, that is what will display when the reset button is clicked.

DTD: HTML5: <!doctype html>
HTML4 Strict: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML4 Transitional or Loose: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

INPUT Reset Web Browser Support:

HTML Versions

INPUT Reset Attributes:

INPUT Reset Usage:

Standard reset button

<form>
<input type="reset">
</form>

See an example of a standard reset button.

INPUT Reset Special Notes:

Reset buttons do not clear the forms of all contents. Instead, they bring the form back to the initial state. In many forms, this is blank, but if you set default values in your forms, then they will display when the reset button is clicked.

The default wording on the reset button is “Reset”. If you want it to say something else, you need to change that in the value attribute.

More INPUT Reset Information:

  1. About.com
  2. Computing
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The INPUT Reset Tag - INPUT Reset - HTML Tag to Reset HTML Forms

©2013 About.com. All rights reserved.