<input type="hidden">

< Previous | HTML 5 Tags | HTML 4.01 Tags | XHTML 1.0 Elements | Next >

Free HTML Class | HTML Validators

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:

Global attributes, event attributes and the input tag 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:

< Previous | HTML 5 Tags | HTML 4.01 Tags | XHTML 1.0 Elements | Next >