From W3C Wiki
< HTML‎ | Elements‎ | input
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.


  • 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.


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 HIDDEN STATE.