Do you have a question? Post it now! No Registration Necessary. Now with pictures!
February 25, 2008, 10:17 pm
rate this thread
(or an ID beginning with a number) is invalid: "It is possible that you
violated the naming convention for this attribute. For example, id and
name attributes must begin with a letter, not a digit."
But I can't seem to find anything that says you can't use a numeric ID -
I'll grant that I'm not a master at reading the specs, but all I CAN
find is that an ID should be unique, and should not use character
encoding. Maybe I'm just not seeing it:
So - what about numeric ID's like above? Is it valid? And assuming it's
not, what sort of problems, aside from validation errors, would it cause?
- Beauregard T. Shagnasty
February 25, 2008, 10:39 pm
Re: Numeric ID
"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 (".")."
You're reading the old HTML 4.0 specs, but it is there as well.
Can't answer that; I've never used a number because it's against the
-Friends don't let friends drive Vista
- » very slow pdf download from 1 client, but not others
- — Previous thread in » Webmaster Forum