1. Home
  2. Computing & Technology
  3. Web Design / HTML

<input type="hidden" />

By Jennifer Kyrnin, About.com

<input type="hidden" /> Description:

The <input type="hidden" /> tag sends form fields to the server while hiding them from the reader.

<input type="hidden" /> Web Browser Support:

<input type="hidden" /> Attributes:

  • All the attributes of the input tag, plus:
  • name (optional)
  • type="hidden"
  • value (optional)

<input type="hidden" /> Usage:

  • standard hidden field:
    <form>
    <input type="hidden" name="hideme" value="hidden" /> </form>

<input type="hidden" /> Special Notes:

  • Use the hidden field to pass along information for processing the form or for saving "state" in a CGI.
  • Remember that hidden fields can be viewed if your readers look at the source HTML, so don't use it for sensitive information such as passwords.

More <input type="hidden" /> Information:

Return to the <input /> Element
Return to XHTML Element (HTML Tags) Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The input type="hidden" Element - hidden form fields - XHTML 1.0 HTML 4.0

©2008 About.com, a part of The New York Times Company.

All rights reserved.