Getting IDs in html attribute IDs

Prefix your numeric id’s (int) with a letter if you plan to use them as html id attributes, because you should.
ID’s are not supposed to start with a number.

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 (“.”).

W3 HTML 4.01 Specs

Comments are closed.

Did you like it?
© 2003 - up to today