1. Computing

Discuss in my forum

<input type="hidden">

By , About.com Guide

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: <!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 Hidden Web Browser Support:

HTML Versions

INPUT Hidden Attributes:

INPUT Hidden Usage:

Standard hidden input field

<form
<input type="hidden" name="date-submitted" value="2010-12-10">
</form>

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.

More INPUT Hidden Information:

  1. About.com
  2. Computing
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The INPUT Hidden Tag - INPUT Hidden - HTML Tag for Submitting Data Invisible to Users

©2013 About.com. All rights reserved.