Secondo la SGML Declaration of HTML 4, il limite potrebbe essere 65536 caratteri:
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 --
Il LITLEN
limita il numero di caratteri che possono essere visualizzati in un unico valore di attributo letterale e ATTSPLEN
limita la somma di tutte le lunghezze di tutte specifiche del valore dell'attributo che appaiono in un tag.
Apparently, the limits used to be much lower in HTML 2, e la gente si lamentava allora nel 1995.
fonte
2010-05-02 04:45:22
duplicati di http://stackoverflow.com/questions/1496096/is-there-a-limit-to-the-length-of-html- attributi. Vedi anche http://stackoverflow.com/questions/584184/what-is-a-practical-maximum-length-for-html-id – outis