I am curious about the original purpose of the <input type="hidden">
tag.
Nowadays it is often used together with JavaScript to store variables in it which are sent to the server and things like that.
- HTML 2.0 was released in November 1995, containing already the specification for input type="hidden"
- JavaScript was released March 1996
Therefore, the <input type="hidden">
existed before JavaScript, so what was its original purpose? I can only imagine of sending a value from the server to the client which is (unchanged) sent back to maintain a kind of a state. Or do I get something wrong in the history of it and <input type="hidden">
was always supposed to be used together with JavaScript?
If possible, please also give references in your answers.