I am wondering what can be the maximum value that a <input type="hidden">
can store, I am not taking about the maxlength attribute, but the string which it can store.
Asked
Active
Viewed 146 times
1

Mr Lister
- 45,515
- 15
- 108
- 150

Umesh Moghariya
- 3,063
- 6
- 21
- 23
-
What type of form element? A checkbox? `:P` – Šime Vidas Apr 05 '12 at 10:11
-
`` will be enough to know about. – Umesh Moghariya Apr 05 '12 at 10:16
-
Wait, you mean ``? `:P` – Šime Vidas Apr 05 '12 at 10:17
-
@ŠimeVidas the question did say `` all the time, but it was hidden. – Mr Lister Apr 05 '12 at 10:19
-
@cloudYturtle Relevant: [Is there a limit to the length of HTML attributes?](http://stackoverflow.com/questions/1496096/is-there-a-limit-to-the-length-of-html-attributes) – Šime Vidas Apr 05 '12 at 10:21
-
@ŠimeVidas It's true though, it needed a couple of backticks. – Mr Lister Apr 05 '12 at 10:22
-
@ŠimeVidas thanks, it gave more insight. Couldn't find it while searching. – Umesh Moghariya Apr 05 '12 at 10:26
1 Answers
0
http://www.w3.org/TR/html401/sgml/sgmldecl.html
QUANTITY SGMLREF
ATTCNT 60 -- increased --
ATTSPLEN 65536 -- These are the largest values --
LITLEN 65536 -- permitted in the declaration --
NAMELEN 65536 -- Avoid fixed limits in actual --
PILEN 65536 -- implementations of HTML UA's --
TAGLVL 100
TAGLEN 65536
GRPGTCNT 150
GRPCNT 64
edit
according to html 5:
The algorithm described below places no limit on the depth of the DOM tree generated, or on the length of tag names, attribute names, attribute values, text nodes, etc. While implementors are encouraged to avoid arbitrary limits, it is recognized that practical concerns will likely force user agents to impose nesting depth constraints.

Royi Namir
- 144,742
- 138
- 468
- 792
-
HTML is no longer an application of SGML. The current standard is [here](http://www.whatwg.org/specs/web-apps/current-work/multipage/). – Šime Vidas Apr 05 '12 at 10:16
-
-
@Royi Namir , thanks for Edit, I was anyways using HTML 4 but I am not able to locate the "value length" – Umesh Moghariya Apr 05 '12 at 10:19