The HTML spec tells us that id (and name) attributes:

must begin with a letter ([AZ[,]az]) and may be followed by any number of letters, digits ([09]), hyphens (-), underscores (_), colons (:), and periods (.).

I decided to test it out. I duplicated a previous posting and added a paragraph at the very end.

For its identifier, I removed all illegal characters from an entire chapter of my book. That’s 39,209 characters. Yes, it clears the validator.

And you’d probably like to hit a link to that paragraph now, wouldn’t you?

The foregoing posting appeared on Joe Clark’s personal Weblog on 2004.06.06 12:38. This presentation was designed for printing and omits components that make sense only onscreen. (If you are seeing this on a screen, then the page stylesheet was not loaded or not loaded properly.) The permanent link is:

(Values you enter are stored and may be published)



None. I quit.

Copyright © 2004–2024