HTML/Elements/input/hidden

From W3C Wiki
< HTML‎ | Elements‎ | input
Revision as of 15:15, 15 March 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<input type="hidden">

The hidden state represents a value that is not intended to be examined or manipulated by the user.

Point

  • If the name attribute is present and has a value that is a case-sensitive match for the string "_charset_", then the element's value attribute must be omitted.


HTML Attributes

  • name = string
    Gives the name of the input element.


  • value = string
    Gives the default value of the input element.


Examples

Example A

[try it]:

<input type="hidden" name="example" value="data1">
<input type="submit" value="submit">

Input hidden01.png

HTML Reference

The HTML5 specification defines the Hidden state in 4.10.7.1.1 HIDDEN STATE.