<input type="hidden">

INPUT Hidden Description:

The hidden INPUT tag allows HTML form developers to store information for delivery with the form data that is invisible to the form users. The hidden form fields are used to save state in multi-page forms, collect cookie data to deliver to the form, and just store data beyond what the customer fills in.

DTD: HTML5:
HTML4 Strict:
HTML4 Transitional or Loose:

INPUT Hidden Web Browser Support:

  • AvantGo Palm OS

HTML Versions

INPUT Hidden Attributes:

Global attributes, event attributes and the input tag attributes.

INPUT Hidden Usage:

Standard hidden input field

 

See an example of a standard hidden input tag.

INPUT Hidden Special Notes:

Use hidden fields to pass along information to the forms that is generated by the program, script, or web page, or that the form user might not know, such as the exact time the form was loaded.

Remember that hidden fields are not hidden from view. Your readers can see them if they view the source of your web page. So you should never use a hidden input field to store passwords or any other sensitive information.