Hi, Chris As from W3C: "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 (".")." But I'd avoid using underscore for id/class names... I've already had intermitent bugs with IE6 because of it (specially for links).
Cheers, Angela -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Chris Taylor Envoyé : mardi 7 juin 2005 12:12 À : wsg@webstandardsgroup.org Objet : [WSG] Valid characters in ID attribute Hi, I'm writing a function to do all manner of clever stuff and need to create very complex ID attributes for links. As far as I know the only valid characters you can use in an ID (and as a class name, too) are: A-Z, a-z, 0-9, _, - Is that true? Are there any other valid characters that I can use in my IDs, without going the whole hog and creating a new DTD? Example of a link, just to make it clear which bit I mean: <a href="index.html" class="TheFunction" id="TheFunction_%6237%6882/34_923%4623%4-234+6+3-2343">Click here to run The Function</a> Many thanks in advance Chris ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ****************************************************** ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************