The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <INPUT> (FILE) | Next Tag: <INPUT> (IMAGE) |


<INPUT> (HIDDEN)

Creates a hidden form control..

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later
Notes:
  • This control is useful for storing data that the user doesn't need to see.
Attributes:
CLASS = "Text"
The style sheet class used by the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported 4.0 and later

Notes:

  • You can specify two or more classes; be sure to separate each class name with a space.

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported Not supported

Notes:

  • Although you can use letters and numbers for the ID, the first character must be a letter.

NAME = "Text"
The name of the control.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later

Notes:

  • The NAME attribute enables scripts to work with this control.
  • With the exception of the RADIO control, all form elements must have a unique name.

STYLE = "Text"
The style or styles to use with the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported 4.0 and later

Notes:

  • If you enter multiple style properties, separate each one with a semi-colon (;).

TYPE = "Text"
The type of the INPUT tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later

Notes:

  • Use TYPE=HIDDEN.

VALUE = "Text"
The initial value assigned to the control.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later

Example:
<FORM ACTION="http://www.mcfedries.com/cgi-win/formtest.exe" METHOD=POST>
<INPUT TYPE=HIDDEN VALUE="Can't see me!">
<INPUT TYPE=SUBMIT>
</FORM>
How It Looks:

| Index | Previous Tag: <INPUT> (FILE) | Next Tag: <INPUT> (IMAGE) |