Forum Moderators: open

Message Too Old, No Replies

spaces in ID attrib names

and <label for="

         

benihana

8:43 pm on Mar 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



is it ok to have a space in a form input id name, and the corresponding label tag?

cheers

g1smd

8:58 pm on Mar 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I believe that an ID must not start with a digit, nor should it have any spaces or punctuation in it.

coopster

9:58 pm on Mar 24, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The id [w3.org] attribute has a case-sensitive [w3.org] NAME [w3.org] token. NAME [w3.org] 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 (".").

benihana

10:08 pm on Mar 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



cheers guys