473,320 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

maximum length of html id name

hug
The valid character set for the ID= attribute of html tags is listed
here (http://www.htmlhelp.com/reference/html40/attrs.html) but I am
having difficulty finding the maximum allowable length of the id
string. ? tia.

--
http://www.ren-prod-inc.com/hug_soft...action=contact
Aug 24 '06 #1
3 21923
hug <contact_info@sig_line.clickitwrites:
The valid character set for the ID= attribute of html tags is listed
here (http://www.htmlhelp.com/reference/html40/attrs.html) but I am
having difficulty finding the maximum allowable length of the id
string. ? tia.
http://www.w3.org/TR/html4/types.html says:
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be
followed by any number of letters, digits ([0-9]), hyphens ("-"),
^^^^^^^^^^
underscores ("_"), colons (":"), and periods (".").
No maximum length

--
Chris
Aug 24 '06 #2

Chris Morris wrote:
hug wrote::
<snip>
>... I am having difficulty finding the maximum allowable
length of the id string. ? tia.

http://www.w3.org/TR/html4/types.html says:
>ID and NAME tokens must begin with a letter ([A-Za-z]) and may be
followed by any number of letters, digits ([0-9]), hyphens ("-"),
^^^^^^^^^^
>underscores ("_"), colons (":"), and periods (".").

No maximum length
>From the SGML Declaration of HTML 4:-
| 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 --

I believe that NAMELEN may be the significant setting (65,536
characters), though the note suggests that it should not actualy
reprresent a limit in practice.

Richard.

Aug 24 '06 #3
"Richard Cornford" <Ri*****@litotes.demon.co.ukwrites:
Chris Morris wrote:
hug wrote::
<snip>
... I am having difficulty finding the maximum allowable
length of the id string. ? tia.
http://www.w3.org/TR/html4/types.html says:
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be
followed by any number of letters, digits ([0-9]), hyphens ("-"),
^^^^^^^^^^
underscores ("_"), colons (":"), and periods (".").
No maximum length

From the SGML Declaration of HTML 4:-

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

I believe that NAMELEN may be the significant setting (65,536
characters), though the note suggests that it should not actualy
reprresent a limit in practice.
Yes, it's the largest value they were allowed. The intended effect is
"unlimited", although a strict SGML parser might disagree. Of course,
browser bugs and memory limitations might disagree first. The values
were quite a bit lower in 2.0 and in the 3.0 drafts - I suspect they
decided to set them to 'effectively unlimited' for lack of a better
value.

(I think LITLEN - the "Maximum length of a delimited literal" - is the
relevant one, but since they're all the same value it doesn't really
matter in this context)

The next one down:
TAGLVL 100
is interesting, too - no more than 100 levels of tag nesting are
allowed.

--
Chris
Aug 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tobias | last post by:
Hi all, am I right assuming that the maximum length for a varchar field I can fetch with the sybase_fetch_* functions is 255? This maximum can only be circumvented by using a text or image...
12
by: dixie | last post by:
Is there a maximum length in VBA of a line containing stuff like the following: If password = "1234" or password = "1235" or password = ............... Then It seems to me that at some stage, I...
1
by: Mohamed Harris via DotNetMonster.com | last post by:
Hi What is maximum length of textarea in visual c#? Thanks in Advance. Harris -- Message posted via http://www.dotnetmonster.com
14
by: olekristianvillabo | last post by:
I have a regular expression that is approximately 100k bytes. (It is basically a list of all known norwegian postal numbers and the corresponding place with | in between. I know this is not the...
1
by: Alan Foxmore | last post by:
Hello all, Is it possible to use String.Format() to specify a maximum length for a formatted item? For example, let's say I have: String.Format("{0}", "FREDDY"); How can I specify that the...
7
by: Martin Pöpping | last post by:
Hello, does a String in C# have a maximum length? I tried to write a ToString Method of my class containing a hashtable. At the beginning of the method i defined a String "ret". In every...
2
by: Paul Johnston | last post by:
I know this may sound silly but given something like if ($_ =~m/(one)|(two)|(three)/) Is there a maximum length on the size of the item between "/" and" /" ? Just curious as regards showing...
2
by: karthee | last post by:
all, what is the maximum length(text) of a node in a treeview. can we set the text length for a treenode? -Karthee
0
by: Ramu528 | last post by:
Friends, I am working on excel sheet. i populated gridview with excel sheet data. the gridview has one column. have to find out the maximum length of String in that column. For example:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.