input type="hidden" ElementThe input type="hidden" element is an inline element declared by the XHTML 1.1 Forms Module
Elements in the Forms Module are:form | label | textarea | select | optgroup | option | button | fieldset | legend | input type="button" | input type="checkbox" | input type="file" | input type="hidden" | input type="image" | input type="password" | input type="radio" | input type="reset" | input type="submit" | input type="text"
input type="hidden" elements are used
within a form to include
any parameters which do not need to be known or modified
by the user. The hidden input is not rendered by the user agent at all,
so the user will only know it is there if they inspect the source code
for the page. This is very easy to do, however, so hidden inputs should
not be used for sensitive information.
Hidden inputs are often used to maintain "state" information between pages, e.g. relevant internal system identifiers, but may be used for any information desired. They can, for example, be used to pass behind-the-scenes information from the document to a client-side script.
For example, a hidden system id can be included as follows:
The input above will be passed to the processing URI on form submission
as the name=value pair: id=HJ234DNAG134XBE2
Although the type attribute is not #REQUIRED
on the input element, its default value is "text" and so must be present on input type="hidden".
input type="hidden" element are listed below:disabled [ type Boolean ]name [ type CDATA ]name attribute is not present, the value of the hidden field will not be sent). The value sent (in a name=value pair) is that of the value attribute of the hidden input.Note: Although technically optional, a note in the *Forms Module DTD says that the name attribute is required on all input elements except "submit" and "reset"
value [ type CDATA ]input type="hidden" element are listed below:class [ type NMTOKENS ]id [ type ID ]style [ type CDATA ], from the Style Attribute Module (deprecated)title [ type Text ]xmlns [ type URI - #FIXED 'http://www.w3.org/1999/xhtml' ]dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Modulexml:lang [ type LanguageCode ]All attributes in the
Events Attribute Collection
are supported:onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
input type="hidden" element is:
EMPTY
See Content Model & Nesting for information about Content Model syntax and Nesting Groups.
input type="hidden"This element is empty and may have no children.
input type="hidden"abbr, acronym, address, cite, code, dfn, div, em, h1 - h6, kbd, p, q, samp, span, strong, varadd, dt, licaption, td, thfieldset, label, legendb, big, i, small, sub, sup, ttdel, insbdoobjectrb, rt